Done some major changes in how Macros are rendered, the overall UX should be better. Please, report any inconsistentices you may notice. There will be more changes in the following weeks, trying to address initial (first) rendering performance.
Probably it will be easier to show, lets take, for example a very basic Razor component created via :
That is what we get as a result
@namespace GameGrind
@inherits BlazorReactiveComponent
<!-- your Razor/HTML markup here -->
namespace GameGrind;
public partial class UserComponent : BlazorReactiveComponent {
//some code here
}
Note that random namespace (GameGrind
, in this case) which previously was automatically inserted whenever you added a new Razor Component.
This is minor, but very inconvenient technical requirement that the scripting system had.
One of such inconveniences would be the fact that such code could not be easily copy-pasted to another EyeAuras script - you either had to change the namespace OR had to deal with the fact that you have multiple different non-related namespaces in your code. None of those are good thing to have.
From now on, namespace declaration is not a requirement anymore - you can omit namespace declaration in BOTH .razor
and .cs
files and EyeAuras will automatically insert them during compilation. Less code = less headache = better life.