sstephenson / eco

Embedded CoffeeScript templates
MIT License
1.71k stars 70 forks source link

embedded eco template inside coffeescript file #26

Open bhavinkamani opened 13 years ago

bhavinkamani commented 13 years ago

Is it possible to embedded eco template inside coffeescript file?

For example, using it with backbone view

class Foo extends Backbone.View

  template: ''' <Eco template as a string> '''

  render: ->
    # Compile eco template contained in @template and append it to $(el).html
    this
ghost commented 13 years ago

I'm also interested in using eco templates client-side with backbone. Is it possible without server-side precompilation in node.js?

orlin commented 13 years ago

Something like ecompilify - humoring jadeify :) Perhaps a good name for an eco-browserify plugin.