Yii Framework Forum: [EXTENSION] EMustache - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[EXTENSION] EMustache EMustache - Mustache templating for Yii Rate Topic: -----

#1 User is offline   Haensel 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 444
  • Joined: 14-January 11
  • Location:Vienna (Austria)

Posted 27 August 2012 - 11:42 AM

Hi,

Just added my "emustache" extension here: http://www.yiiframew...sion/emustache/
It basically is a wrapper for the great mustache.php library. I tried to make the switch from classic php "templates" to mustache templates as easy as possible by using the exact same syntax as Yii does. Find more info at the extension page or the Github project page

cheers,

Hannes
1

#2 User is offline   landland 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 29-October 12

Posted 30 October 2012 - 10:19 AM

Hi Haensel,

Does this extension work with CActiveDataProvider for something like a list of items? If so, can you provide an example of how that might work? I see an example for a single model, but what if you wanted a list of models? Thanks for reading. I appreciate any help.
0

#3 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 09 May 2013 - 04:44 AM

I have been pimping Mustache as a template engine for Yii2 here:
https://github.com/y...yii2/issues/187

However, it was closed.
And I understand that there is enough on the plates of the Yii devs as it is right now.

Still, I feel that concentrating solely on the PHP community is a mistake..

What are your experiences using Mustache with Yii Haensel?

One of the benefits of Mustache is that it has support for 26 languages where Smarty and Twig is PHP only.

It means that one could develop and test Mustache templates using Javascript..

It also means that one could switch to Backbone.js either completely or partially, without touching the view templates at all ...

I wonder how easy it would be to port your extension to Yii2 ?
"Less noise - more signal"
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users