Socket
Socket
Sign inDemoInstall

hjs

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hjs

Hogan.js NPM package for express 3.x


Version published
Weekly downloads
559
increased by14.78%
Maintainers
1
Install size
1.36 MB
Created
Weekly downloads
 

Readme

Source

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 -H /tmp/testapp
$ cd /tmp/testapp/
& npm install

Manual 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.0",
        "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

FAQs

Last updated on 11 Sep 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc