elabs/serenade.js — Issue #20: Options to render a file as a view
Author: kimptoc
Created: 2012-02-14 23:00:21+00:00
State: open

Hi,

I'd like to put my serenade views in separate files (rather than having them in script tags)

Like how the serenade_rails plugin does it (I am using middleman as its for a static site, so cannot use the rails option).

I've got it working using a jQuery $.get and parsing the view from the returned data, however this doesnt seem that slick.

I tried using a src= attribute on the script tag pointing at my serenade file but that didnt seem to work.

So - any suggestions on how to proceed?

Thanks, Chris

PS
I have opened an item on the middleman page to look at adding an extension to parse the views like the serenade_rails plugin - but not sure how far I will get with that
https://github.com/middleman/middleman/issues/273