To truely render a macro from inside a razor macro you can use the Razor Components package I recently released. It adds support for rendering macros from other Razor scripts.
This is specificly for when you want to use real macros, nothing wrong with just using
Nested macro syntax
How would I go about displaying a nested macro in razor from within my macro?
The following works for me:
You can call that from anywhere in your macro or template. You may also pass specific values to the nested macro by using the @Page:
And then in NestedScript.cshtml you can use Page.MyItem:
Could I pass parameters to that?
To answer my own question
http://our.umbraco.org/wiki/reference/code-snippets/razor-snippets/@renderpage-with-args
To truely render a macro from inside a razor macro you can use the Razor Components package I recently released. It adds support for rendering macros from other Razor scripts.
This is specificly for when you want to use real macros, nothing wrong with just using
but that doesn't handle true macro support.
If I try to download that all I'm getting is the README.md file
woops I inadvertantly must have marked the redme as the main download, try again now.
Right off the bat that's not recognising
@Library.RenderMacro
are you getting any @Library.XXX() intellisense?
Are you using
?
have you added
is working on a reply...