Yii 1.1: razorviewrenderer

Razor - new view templates renderer
4 followers

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.

Resources

Documentation

Requirements

  • Yii 1.1.2 or above

Installation

  • Extract the release file under protected/extensions/renderers

Usage

Configure application component "viewRenderer" like this:

array(
     'components'=>array(
         ......
         'viewRenderer'=>array(
             'class'=>'ext.renderers.RazorViewRenderer',
             'fileExtension'=>'.tpl',
         ),
     ),
)

Change Log

August 26, 2010

  • version 1.0.1 Using new operator "@:" for HTML encoding, instead of default "@"

August 11, 2010

  • Initial release.

Total 5 comments

#15552 report it
fouss at 2013/11/21 03:01am
working?

It seems not working now!

#2618 report it
Juan Pablo Sala at 2011/01/23 06:32pm
>> netbeans?

Thanks for your answer!

#2594 report it
Krab at 2011/01/21 02:25am
>> netbeans?

Hi, Do You Know If Netbeans Can Work With This?? Thanks For Your Work Juan Unfortunately No. But You Can Choose Mime: text/html for .tpl extensions I have tried to write file-type module for NetBeans 6.9.1 with ANTLR lexer parser, but proposed samples did not work for me :( Long abandoned due to lack of free time.

#2571 report it
Juan Pablo Sala at 2011/01/18 10:05am
netbeans?

Hi, do you know if netbeans can work with this?? Thanks for your work Juan

#148 report it
Lafriks at 2010/08/27 03:52am
:)

Looks very promising!

Leave a comment

Please to leave your comment.

Create extension
  • Yii Version: 1.1
  • License: MIT License
  • Developed by: Krab
  • Category: Others
  • Votes: +4 / -1
  • Downloaded: 329 times
  • Created on: Aug 11, 2010
  • Last updated: Aug 26, 2010