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

befe-riotjs-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

befe-riotjs-loader

riotjs module loader for webpack with module separation

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

riotjs truely module loader

Installation

npm install --save-dev befe-riotjs-loader

Notice

  • Only one tag is allow on the tag.
  • riotmap is required for loading customed tags

usage

# index.js (entry file)
var riot = require('riot')
var tag = require('./my-tag.tag')

riot.mount('#root', tag, {
    name: 'world'
})

# my-tag.tag
var riotmap = {
    section: require('./section.tag')
}

<my-tag>
    <h1 ha={ name } onClick={handleClick}>hello { name }</h1>
    <div riot-tag="section"></div>

    <script>
        this.name = opts.name || 'world';

        this.handleClick = function() {
          alert('hi')
        }
    </script>
</my-tag>


# section.tag
<my-section>
    <span>My section</span>
</my-section>

  • Self link: https://www.npmjs.com/package/befe-riotjs-loader

Keywords

FAQs

Package last updated on 18 May 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