Razor does not require you to explicitly close the code-block.
Compact, Expressive, and Fluid: Razor minimizes the number of characters and keystrokes required in a file, and enables a fast, fluid coding workflow. Unlike most template syntaxes, you do not need to interrupt your coding to explicitly denote server blocks within your HTML. The parser is smart enough to infer this from your code. This enables a really compact and expressive syntax which is clean, fast and fun to type.
Easy to Learn: Razor is easy to learn and enables you to quickly be productive with a minimum of concepts. You use all your existing language and HTML skills.
protected/extensions/renderersConfigure application component "viewRenderer" like this:
array( 'components'=>array( ...... 'viewRenderer'=>array( 'class'=>'ext.renderers.RazorViewRenderer', 'fileExtension'=>'.tpl', ), ), )
Total 4 comments
Thanks for your answer!
Hi, do you know if netbeans can work with this?? Thanks for your work Juan
Looks very promising!
Leave a comment
Please login to leave your comment.