├── .gitignore
├── .travis.yml
├── History.md
├── README.md
├── index.js
├── package.json
└── test
├── fixtures
├── basic
│ ├── _entry.ejs
│ ├── app.js
│ ├── collection.ejs
│ ├── index.ejs
│ ├── layout.ejs
│ ├── locals.ejs
│ └── mobile.ejs
├── chained-views
│ ├── app.js
│ ├── index.js
│ ├── layout.ejs
│ ├── locals1.ejs
│ ├── locals2.ejs
│ ├── view1.ejs
│ ├── view2.ejs
│ └── view3.ejs
├── default-layout
│ ├── app.js
│ ├── index.js
│ ├── layout-1.ejs
│ ├── layout-2.ejs
│ └── view.ejs
├── locals
│ ├── app.js
│ ├── details.haml
│ └── index.haml
├── register
│ ├── app.js
│ ├── index.coffeecup
│ ├── index.eco
│ ├── index.ejs
│ ├── index.j
│ ├── layout.coffeecup
│ ├── layout.eco
│ ├── layout.ejs
│ └── layout.j
├── subdir
│ ├── app.js
│ └── subdir
│ │ ├── a-view.ejs
│ │ ├── dir
│ │ └── a-layout.ejs
│ │ ├── index.ejs
│ │ ├── layout.ejs
│ │ └── partial.ejs
└── thing
│ └── index.ejs
├── test.partials.basic.js
├── test.partials.chained-views.js
├── test.partials.default-layout.js
├── test.partials.haml-locals.js
├── test.partials.register.js
└── test.partials.subdir.js
/.gitignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/.gitignore
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/.travis.yml
--------------------------------------------------------------------------------
/History.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/History.md
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/README.md
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/index.js
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/package.json
--------------------------------------------------------------------------------
/test/fixtures/basic/_entry.ejs:
--------------------------------------------------------------------------------
1 |
<%= entry.name %>
--------------------------------------------------------------------------------
/test/fixtures/basic/app.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/basic/app.js
--------------------------------------------------------------------------------
/test/fixtures/basic/collection.ejs:
--------------------------------------------------------------------------------
1 | <%- partial(name,list) %>
--------------------------------------------------------------------------------
/test/fixtures/basic/index.ejs:
--------------------------------------------------------------------------------
1 | Index
--------------------------------------------------------------------------------
/test/fixtures/basic/layout.ejs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/basic/layout.ejs
--------------------------------------------------------------------------------
/test/fixtures/basic/locals.ejs:
--------------------------------------------------------------------------------
1 | <%= hello %>
--------------------------------------------------------------------------------
/test/fixtures/basic/mobile.ejs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/basic/mobile.ejs
--------------------------------------------------------------------------------
/test/fixtures/chained-views/app.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/chained-views/app.js
--------------------------------------------------------------------------------
/test/fixtures/chained-views/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./app');
--------------------------------------------------------------------------------
/test/fixtures/chained-views/layout.ejs:
--------------------------------------------------------------------------------
1 | <%- body %>
--------------------------------------------------------------------------------
/test/fixtures/chained-views/locals1.ejs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/chained-views/locals1.ejs
--------------------------------------------------------------------------------
/test/fixtures/chained-views/locals2.ejs:
--------------------------------------------------------------------------------
1 | Locals 2 <%= logged_user %>
--------------------------------------------------------------------------------
/test/fixtures/chained-views/view1.ejs:
--------------------------------------------------------------------------------
1 | View 1 contents
2 | <%- partial('view2') %>
--------------------------------------------------------------------------------
/test/fixtures/chained-views/view2.ejs:
--------------------------------------------------------------------------------
1 | View 2 contents
2 | <%- partial('view3') %>
--------------------------------------------------------------------------------
/test/fixtures/chained-views/view3.ejs:
--------------------------------------------------------------------------------
1 | View 3 contents
--------------------------------------------------------------------------------
/test/fixtures/default-layout/app.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/default-layout/app.js
--------------------------------------------------------------------------------
/test/fixtures/default-layout/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./app');
--------------------------------------------------------------------------------
/test/fixtures/default-layout/layout-1.ejs:
--------------------------------------------------------------------------------
1 | Layout 1
2 | <%- body %>
--------------------------------------------------------------------------------
/test/fixtures/default-layout/layout-2.ejs:
--------------------------------------------------------------------------------
1 | Layout 2
2 | <%- body %>
--------------------------------------------------------------------------------
/test/fixtures/default-layout/view.ejs:
--------------------------------------------------------------------------------
1 | View
--------------------------------------------------------------------------------
/test/fixtures/locals/app.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/locals/app.js
--------------------------------------------------------------------------------
/test/fixtures/locals/details.haml:
--------------------------------------------------------------------------------
1 | .inner= favourite_colour
--------------------------------------------------------------------------------
/test/fixtures/locals/index.haml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/locals/index.haml
--------------------------------------------------------------------------------
/test/fixtures/register/app.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/register/app.js
--------------------------------------------------------------------------------
/test/fixtures/register/index.coffeecup:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/register/index.coffeecup
--------------------------------------------------------------------------------
/test/fixtures/register/index.eco:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/register/index.eco
--------------------------------------------------------------------------------
/test/fixtures/register/index.ejs:
--------------------------------------------------------------------------------
1 | Index
--------------------------------------------------------------------------------
/test/fixtures/register/index.j:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/register/index.j
--------------------------------------------------------------------------------
/test/fixtures/register/layout.coffeecup:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/register/layout.coffeecup
--------------------------------------------------------------------------------
/test/fixtures/register/layout.eco:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/register/layout.eco
--------------------------------------------------------------------------------
/test/fixtures/register/layout.ejs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/register/layout.ejs
--------------------------------------------------------------------------------
/test/fixtures/register/layout.j:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/register/layout.j
--------------------------------------------------------------------------------
/test/fixtures/subdir/app.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/subdir/app.js
--------------------------------------------------------------------------------
/test/fixtures/subdir/subdir/a-view.ejs:
--------------------------------------------------------------------------------
1 | A view
--------------------------------------------------------------------------------
/test/fixtures/subdir/subdir/dir/a-layout.ejs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/subdir/subdir/dir/a-layout.ejs
--------------------------------------------------------------------------------
/test/fixtures/subdir/subdir/index.ejs:
--------------------------------------------------------------------------------
1 | Hello World
--------------------------------------------------------------------------------
/test/fixtures/subdir/subdir/layout.ejs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/fixtures/subdir/subdir/layout.ejs
--------------------------------------------------------------------------------
/test/fixtures/subdir/subdir/partial.ejs:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/fixtures/thing/index.ejs:
--------------------------------------------------------------------------------
1 | <%= thing.name %>
--------------------------------------------------------------------------------
/test/test.partials.basic.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/test.partials.basic.js
--------------------------------------------------------------------------------
/test/test.partials.chained-views.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/test.partials.chained-views.js
--------------------------------------------------------------------------------
/test/test.partials.default-layout.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/test.partials.default-layout.js
--------------------------------------------------------------------------------
/test/test.partials.haml-locals.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/test.partials.haml-locals.js
--------------------------------------------------------------------------------
/test/test.partials.register.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/test.partials.register.js
--------------------------------------------------------------------------------
/test/test.partials.subdir.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/publicclass/express-partials/HEAD/test/test.partials.subdir.js
--------------------------------------------------------------------------------