baryshev / ect

Fastest JavaScript template engine with embedded CoffeeScript syntax
http://ectjs.com
MIT License
625 stars 69 forks source link

Is it required to define the 'root' variable? #48

Closed greduan closed 9 years ago

greduan commented 10 years ago

@baryshev I am making making an Ect renderer plugin for DocPad, a Node static website generator.

DocPad has it's own implementation of templates, but blocks and partials aren't implemented into core (AFAIK).

I need to know if Ect requires the template, partials and blocks folder or if it's optional. I'd like to implement it but if it's not necessary I'll leave it off the initial release.

Thanks!

greduan commented 10 years ago

What I need is to just use Ect for it's inline logic, basically. For rendering the CoffeeScript. I do not need it for it's templates, blocks and partials.

Is that possible?

greduan commented 10 years ago

In case you're wondering why, the idea is for it to be a replacement for the DocPad Eco plugin.

Eco is outdated and slow compared to Ect.