Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haraldrudell/uinexpress
Enables underscore templates in express 2 and 3. By Harald Rudell.
https://github.com/haraldrudell/uinexpress
Last synced: 1 day ago
JSON representation
Enables underscore templates in express 2 and 3. By Harald Rudell.
- Host: GitHub
- URL: https://github.com/haraldrudell/uinexpress
- Owner: haraldrudell
- Created: 2012-05-26T22:37:09.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-05-26T23:00:17.000Z (over 12 years ago)
- Last Synced: 2024-11-12T17:51:20.059Z (6 days ago)
- Language: JavaScript
- Size: 104 KB
- Stars: 8
- Watchers: 3
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# uinexpress
Enables underscore templates in express versions 2 and 3.
# Usage
in your express app.js, for express 3:
```
app.configure(function () {
app.engine('html', require('uinexpress').__express)
app.set('view engine', 'html')
```
in your express app.js, for express 2:
```
app.configure(function () {
app.register('html', require('uinexpress'))
app.set('view engine', 'html')
```
# Notes
* An alternative is to use ejs in the browser, see the module [ejsinbrowser](https://github.com/haraldrudell/ejsinbrowser)