Notable Pseudocode Mashups
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    express-hoganpublic

    hjs

    Hogan.js NPM package for express 3.x

    Installation

    $ npm install -g express@3.0  hjs
    

    Quick Start

    Install Express :

    $ npm install -g express@3.0
    

    Create express app :

    $ express /tmp/testapp
    $ cd /tmp/testapp/
    

    Edit package.json :

    $ vi package.json
    
        "dependencies": {
            "express": "3.0.0beta2",
            "hjs": "*"
        }
    $ npm install
    

    Edit app.js :

        app.set('view engine', 'hjs');

    Make views/index.hjs :

        <html>
        <head>
            <title>{{ title }}</title>
        </head>
        <body>
            <p>{{ title }}</p>
        </body>
        </html>

    Start server :

    $ node app
    

    More Information

    express is Fast, unopinionated, minimalist web framework for node.

    Hogan.js is a compiler for the Mustache templating language. For information on Mustache, see the manpage and the spec.

    Keywords

    none

    install

    npm i express-hogan

    Downloadsweekly downloads

    3

    version

    0.0.5

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar