Please make the code re-usable by creating a Standalone Package

The current Blazor implementation of the theme is in a single project which forces me to use the starter kit project for new projects and cluttering my code with your code.

You can create a Nuget package or seperate assembly that can be referenced from new projects. Then I don't need to have the themeconfig and all the javascript and ccs in my project.

I can just say for example:

services.AddMetronicTheme();


That would be a massive benefit for using the theme.

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)

Hi,

Thank you for your suggestion. We will differently check this further and consider it.
Nuget package would be not suitable since we need to verify user's license code.
Could you please elaborate on the separate assembly option?

Regards.

You can create something called a "Razor Class Library" and build all your components in there. Then you have the option to either publish that library as a Nuget or you can just directly reference the project, in your case you dont need to publish the Nuget.

From within your assembly you can reference your "internal assets" like so:

<img src="_content/MyAssemblyName/images/blazor_logo.jpg" />

Take a look at these articles:

https://www.ezzylearning.net/tutorial/a-developers-guide-to-blazor-component-libraries

https://www.meziantou.net/publishing-a-self-contained-blazor-component-razor-css-js-as-a-nuget-package.htm

https://livebook.manning.com/book/blazor-in-action/chapter-7/1

Hi,

We will consider your suggestions in a future update for sure.

Our current starter kit solves the layout rendering and page generation.
At the moment we are not focusing on components instead, we are going to provide a fully functional authentication and user management module with working CRUD.

Regards.

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(