Menu

fasttemplate replacement

2008-05-05
2013-04-15
  • Janusz Skudrzyk

    Janusz Skudrzyk - 2008-05-05

    Hi

    Is there a way to replace class.fasttemplate with Blitz ? I think I could write my own class which would convert "assign" into "set" etc. But there is a problem: the templates doesn't match. In the fasttemplates I have got {var} and in the blitz there is {{ $var }}. I know that I can change {{, }} into { } and $var into var, but there are two spaces. Could You give me a hint ?

     
    • Alexey Rybak

      Alexey Rybak - 2008-05-07

      in blitz spaces for '{{' and '}}' tags doesn't matter at all. use {{$var}} or {{     $var     }} - whatever. moreover in most of cases you can use "unprefixed variables":  {{var}} is equal to {{$var}} until you controller has no method called var.

       
      • Janusz Skudrzyk

        Janusz Skudrzyk - 2008-05-15

        Great :)

        I wrote my own php module, but it is only 2-4 times faster than fasttemplates.

         

Log in to post a comment.