[ 3 posts ]

Marc

YUI Contributor

  • Offline
  • Profile

Handlebars Loader

Post Posted: Thu Aug 09, 2012 8:55 am
+0-
Hi,

I just published a new version of the Handlebars-Loader in the gallery, which now offers transparent remote loading of templates. I also added a id to fileRef converter option that allows you to automatically convert local node id references to remote file references. E.g.
convert inbox-message_en-hbs to en/inbox/message.hbs for remote loading.

This is for everybody who doesn't use Node.js and therefore cannot benefit from server side javascript compilation of Handlebars templates.

Handlebars Loader loads and compiles your Handlebars templates:
* From a node included on the page
* From a remote location

Let me know any thoughts.

Marc

Eric Ferraiuolo

YUI Developer

  • Username: ericf
  • Joined: Mon Jan 12, 2009 8:26 pm
  • Posts: 380
  • Location: Boston, MA
  • Twitter: ericf
  • GitHub: ericf
  • Gists: ericf
  • IRC: eric_f
  • YUI Developer
  • Offline
  • Profile

Re: Handlebars Loader

Post Posted: Fri Aug 10, 2012 5:27 am
+0-
Sweet!

Have you thought about compiling templates as a build step? That way you could still uses them even in a non-Node.js server environment:
http://yuilibrary.com/yui/docs/handleba ... mmand-line

Marc

YUI Contributor

  • Offline
  • Profile

Re: Handlebars Loader

Post Posted: Fri Aug 10, 2012 5:57 am
+0-
Yeah, I did actually think about that, but I haven't gotten around to trying that out yet. If I do that, I won't need the Handlebars Loader of course. I could just use the YUI Loader
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum