├── .gitignore ├── .gitmodules ├── .travis.yml ├── History.md ├── Makefile ├── Readme.md ├── benchmark.js ├── ejs.js ├── ejs.min.js ├── examples ├── client.html ├── functions.ejs ├── functions.js ├── list.ejs └── list.js ├── index.js ├── lib ├── ejs.js ├── filters.js └── utils.js ├── package.json ├── support └── compile.js └── test ├── ejs.js └── fixtures ├── backslash.ejs ├── backslash.html ├── comments.ejs ├── comments.html ├── double-quote.ejs ├── double-quote.html ├── error.ejs ├── error.out ├── fail.ejs ├── include.css.ejs ├── include.css.html ├── include.ejs ├── include.html ├── includes ├── menu-item.ejs └── menu │ └── item.ejs ├── menu.ejs ├── menu.html ├── messed.ejs ├── messed.html ├── newlines.ejs ├── newlines.html ├── no.newlines.ejs ├── no.newlines.html ├── para.ejs ├── pet.ejs ├── single-quote.ejs ├── single-quote.html ├── style.css └── user.ejs /.gitignore: -------------------------------------------------------------------------------- 1 | # ignore any vim files: 2 | *.sw[a-z] 3 | vim/.netrwhist 4 | node_modules 5 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/.travis.yml -------------------------------------------------------------------------------- /History.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/History.md -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/Makefile -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/Readme.md -------------------------------------------------------------------------------- /benchmark.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/benchmark.js -------------------------------------------------------------------------------- /ejs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/ejs.js -------------------------------------------------------------------------------- /ejs.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/ejs.min.js -------------------------------------------------------------------------------- /examples/client.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/examples/client.html -------------------------------------------------------------------------------- /examples/functions.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/examples/functions.ejs -------------------------------------------------------------------------------- /examples/functions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/examples/functions.js -------------------------------------------------------------------------------- /examples/list.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/examples/list.ejs -------------------------------------------------------------------------------- /examples/list.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/examples/list.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/ejs'); -------------------------------------------------------------------------------- /lib/ejs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/lib/ejs.js -------------------------------------------------------------------------------- /lib/filters.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/lib/filters.js -------------------------------------------------------------------------------- /lib/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/lib/utils.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/package.json -------------------------------------------------------------------------------- /support/compile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/support/compile.js -------------------------------------------------------------------------------- /test/ejs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/ejs.js -------------------------------------------------------------------------------- /test/fixtures/backslash.ejs: -------------------------------------------------------------------------------- 1 | \foo -------------------------------------------------------------------------------- /test/fixtures/backslash.html: -------------------------------------------------------------------------------- 1 | \foo -------------------------------------------------------------------------------- /test/fixtures/comments.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/comments.ejs -------------------------------------------------------------------------------- /test/fixtures/comments.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/comments.html -------------------------------------------------------------------------------- /test/fixtures/double-quote.ejs: -------------------------------------------------------------------------------- 1 |

<%= "lo" + 'ki' %>'s "wheelchair"

-------------------------------------------------------------------------------- /test/fixtures/double-quote.html: -------------------------------------------------------------------------------- 1 |

loki's "wheelchair"

-------------------------------------------------------------------------------- /test/fixtures/error.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/error.ejs -------------------------------------------------------------------------------- /test/fixtures/error.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/error.out -------------------------------------------------------------------------------- /test/fixtures/fail.ejs: -------------------------------------------------------------------------------- 1 | <% function foo() return 'foo'; %> -------------------------------------------------------------------------------- /test/fixtures/include.css.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/include.css.ejs -------------------------------------------------------------------------------- /test/fixtures/include.css.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/include.css.html -------------------------------------------------------------------------------- /test/fixtures/include.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/include.ejs -------------------------------------------------------------------------------- /test/fixtures/include.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/include.html -------------------------------------------------------------------------------- /test/fixtures/includes/menu-item.ejs: -------------------------------------------------------------------------------- 1 |
  • <% include menu/item %>
  • -------------------------------------------------------------------------------- /test/fixtures/includes/menu/item.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/includes/menu/item.ejs -------------------------------------------------------------------------------- /test/fixtures/menu.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/menu.ejs -------------------------------------------------------------------------------- /test/fixtures/menu.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/menu.html -------------------------------------------------------------------------------- /test/fixtures/messed.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/messed.ejs -------------------------------------------------------------------------------- /test/fixtures/messed.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/messed.html -------------------------------------------------------------------------------- /test/fixtures/newlines.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/newlines.ejs -------------------------------------------------------------------------------- /test/fixtures/newlines.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/newlines.html -------------------------------------------------------------------------------- /test/fixtures/no.newlines.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/no.newlines.ejs -------------------------------------------------------------------------------- /test/fixtures/no.newlines.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tj/ejs/HEAD/test/fixtures/no.newlines.html -------------------------------------------------------------------------------- /test/fixtures/para.ejs: -------------------------------------------------------------------------------- 1 |

    hey

    -------------------------------------------------------------------------------- /test/fixtures/pet.ejs: -------------------------------------------------------------------------------- 1 |
  • [[= pet.name ]]
  • -------------------------------------------------------------------------------- /test/fixtures/single-quote.ejs: -------------------------------------------------------------------------------- 1 |

    <%= 'loki' %>'s wheelchair

    -------------------------------------------------------------------------------- /test/fixtures/single-quote.html: -------------------------------------------------------------------------------- 1 |

    loki's wheelchair

    -------------------------------------------------------------------------------- /test/fixtures/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | foo: '<%= value %>'; 3 | } -------------------------------------------------------------------------------- /test/fixtures/user.ejs: -------------------------------------------------------------------------------- 1 |

    {= name}

    --------------------------------------------------------------------------------