JSPM

tag-pug-loader

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q26696F
  • License MIT

Integrating RiotJS with PugJs (ex Jade) in a Webpack loader

Package Exports

  • tag-pug-loader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tag-pug-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

RiotJS + PugJS + Webpack

Install

$ npm install --save-dev tag-pug-loader

And add the loader to your webpack.config.js:

module.exports = {
    // ...
    module: {
      loaders: [
        { test: /\.tag$/, exclude: /node_modules/, loader: 'tag-pug-loader' }
      ]
    }
}

Description

Write RiotJS tags using PugJS (ex Jade)

Example

app.tag

app
  p Hello world

app.js

var riot = require('riot')
var app = require('app.tag')

riot.mount(app)

Running The Test Suite

$ npm test

Contributing:

Feel free to open issues to propose stuff and participate. Pull requests are also welcome.

License:

MIT