Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

embedded eco template inside coffeescript file #26

Open
bhavinkamani opened this issue Jul 15, 2011 · 2 comments
Open

embedded eco template inside coffeescript file #26

bhavinkamani opened this issue Jul 15, 2011 · 2 comments

Comments

@bhavinkamani
Copy link

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
Copy link

ghost commented Aug 14, 2011

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

@orlin
Copy link

orlin commented Aug 18, 2011

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants