Vadim Baryshev
Vadim Baryshev
I can't reproduce this bug on a real world example. Simple app with connect-static middleware and the same behaviour works fine.
What version of connect-domain and node.js do you use?
You can use `@` prefix to export helpers from included file. Example: helpers.ect ``` %> Hello, ! %> ``` page.ect ``` ```
You can compile ECT templates to JS with bundled cli tool (located in `bin` directory), and use precompiled templates.
На данный момент такой возможности нет, но добавить стоит, согласен. Как временное решение - можно поменять у ECT управляющие конструкции `` на например `{{ }}`. Это можно сделать в настройках...
JS синтаксис вносит некоторые ограничения, которые в конечном итоге влияют на скорость выполнения. Например, чтобы обращаться к переменной шаблона без преффиксов типа `this.varName` необходимо использовать оператор `with`, который сильно тормозит...
This feature planned for next version.
First version of command-line compiler released just now (with v0.5.0). It have a basic functionality for now, but will be improved in future.
If you need to serve all precompilied templates to client in one script/html (without ajax lazy load) you can use this syntax: ``` js var renderer = new ECT({ root...
This is a string as it outputted by ect command line tool.