Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blueimp-tmpl-loader

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blueimp-tmpl-loader

blueimp templates loader for webpack

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

blueimp template loader for webpack

Build Status Dependency Status

blueimp template loader for webpack. Compile templates and allows minification

Installation

npm install blueimp-tmpl-loader --save-dev

Usage

Documentation: Using loaders

var template = require("blueimp-tmpl!./file.html");
// => returns the template function compiled with the tmpl templating engine.

// And then use it somewhere in your code
template(data) // Pass object with data

Alternatively you can also define blueimp-tmpl in your webpack.config file:

  {
    module: {
      loaders: [
        { test: "\.tpl.html$", loader: "blueimp-tmpl" },
      ]}
  }
  var template = require('./file.tpl.html');

The blueimp-tmpl loader allows you to minify the html before compiling by setting a loader query string

  {
    module: {
      loaders: [
        { test: "\.tpl.html$", loader: "html-tpl?minimize=true" }
      ]
  }

Tests

Build Status

Run unit tests:

  npm install
  npm test

Demo

http://jantimon.github.io/blueimp-tmpl-loader/

License

MIT (http://www.opensource.org/licenses/mit-license.php)

Keywords

FAQs

Package last updated on 03 Jun 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc