Nebulous Puffy Marshmallows
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    hogan-loaderpublic

    Hogan loader for webpack

    Compiles Mustache templates with Hogan and optionally html-minifier.

    Install

    $ npm i -S hogan-loader

    Usage

    module: {
        loaders: [ {
            test: /\.html$/,
            loader: 'hogan'
            // loader: 'hogan?minify'
            // loader: 'hogan?{ minify: { removeComments: false } }'
        } ]
    }
    var data = {minify: {removeComments: false}, data: {foo: 'bar'}};
    var html = require('hogan!./template.html?' + JSON.stringify(data));

    Documentation: Using loaders.

    License

    WTFPL

    install

    npm i hogan-loader

    Downloadsweekly downloads

    4

    version

    0.0.2

    license

    WTFPL

    repository

    githubgithub

    last publish

    collaborators

    • avatar