react-templates loader module for webpack
JavaScript
Switch branches/tags
Nothing to show
Clone or download
AlexanderPavlenko Merge pull request #26 from lsglick/patch-1
Fix path after react-templates 0.6.2 release
Latest commit 8bc2c6c May 9, 2018
Permalink
Failed to load latest commit information.
.gitignore added initial .gitignore Jun 16, 2016
README.md closes #17 Jan 14, 2017
index.js Use /dist/ directory for react-templates May 7, 2018
package.json Update dependency and version May 7, 2018

README.md

react-templates loader for webpack

Usage

var template = require("react-templates-loader!./template.rt");
// => return exports of executed and compiled template.rt

Documentation: Using loaders

Recommended configuration

{
	module: {
		loaders: [
			{ test: /\.rt$/, loader: "react-templates-loader?modules=amd" },
		]
	}
}

When the loader is configured, it shouldn't be referenced in the require:

var template = require("./template.rt");

License

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