Skip to content

DocPad plugin that adds the ability to pre render React Components

License

Notifications You must be signed in to change notification settings

chrishale/docpad-plugin-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Plugin for DocPad

Build Status NPM version

This plugin pre-renders React components from js or jsx files during the site generation.

<%- @react('./files/components/App.jsx') %>

NOTE: path is relative to docpad's srcPath.

This should also work with webpack style loaders (as long as you define the loader at the point of requiring in your js). For example:

var svg = require('url?mimetype=image/svg+xml!./example.svg');

You will also need to have the loaders as dependencies in your sites package.json

Install

npm install docpad-plugin-react

License

Licensed under the incredibly permissive MIT License
Copyright © 2014 Chris Hale

About

DocPad plugin that adds the ability to pre render React Components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published