New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

rml-loader

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rml-loader

webpack loader for rml

latest
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

rml-loader

webpack loader for rml(react markup language)

NPM version npm download

usage

module: {
  loaders: [
    {
      test: /\.rml$/,
      loaders: ['babel','rml-loader?allowImportComponent']
    },
  ],
},

see index.js webpack.config.js index.html inside tests dir.

preview

index.js

import render from './index.rml';

const Page = React.createClass({
  getInitialState() {
    return {
      items: [
        {
          title: 'item1',
        },
        {
          title: 'item2'
        },
      ],
    };
  },
  render() {
    return render.call(this, this.state);
  },
});

index.rml

<import src="./item.rml" />
<div>
    <div r:for="{{items}}" r:key="title">
        <p>index: {{index}}</p>
        <template is="item" data="{{...item}}" />
    </div>
</div>

item.rml

<template name="item">
    <div>
        <p>title: {{title}}</p>
    </div>
</template>

Keywords

react

FAQs

Package last updated on 16 Dec 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