I create a new Razor scripting file. just a test string in there (no actual razor code), then put the macro in a template and it displays:
Error loading MacroEngine script (file: test.razor)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Usually, the macro scripts have the extension
.cshtml(not.razor) and are placed in the/macroScriptsfolder.The macros usually look like this:
You may try by simply putting a
@{ ... }around your test string (as well as renaming the extension to cshtml).