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

requirejs-riotcompile

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

requirejs-riotcompile

AMD loader for riot.js tags

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

requirejs-riotcompile

AMD loader for riot.js tags

Install the plugin and its dependencies using bower

$ bower install requirejs-riotcompile --save

or using npm

$ npm install requirejs-riotcompile --save

Usage

To use require-riotcompile you should set paths for Riot.js and requirejs-text

requirejs.config({
    paths : {
        riot : 'path/to/riot+compiler.js',
        text : 'path/to/requirejs-text/text',
        riotcompile: 'path/to/require-riotcompile/require-riotcompile'
    }
});

To get precompiled tag, require it with riotcompile!. As riotcompile uses text plugin, required file may have any extension(.html, .tag or anything else)

require('riot', 'riotcompile!./component.html', function(riot){
    riot.mount('component');
});

Build

On build use stubModules to stub text and riotcompile plugins

({
    stubModules: ['text','riotcompile']
})

If necessary, you can set riot path to version without compiler

({
    paths: {
      riot: 'path/to/riot.js'
    }
})

License

MIT © Dmitriy Poluektov

Keywords

FAQs

Package last updated on 22 Feb 2016

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