The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Template::Plugin::React - Plugin for Facebook React

DESCRIPTION

This is a Template Toolkit plugin to render React components. The current version is 0.008. You must use React version 0.9.0 or higher with this plugin.

REQUIREMENTS

Mozilla's SpiderMonkey and SWIG must be installed. SpiderMonkey 24 was used to build this module; if you use a different version, your mileage may vary. The Makefile.PL script uses js-config to learn about the compilation flags to use, so make sure that is in your PATH.

USAGE

This plugin only exposes a single function: React.render(component, data). component must be a string representing the component name, and data, if passed, must be a hash ref representing the data to provide to the component during rendering. JavaScript exceptions are propagated up and sent to an invocation of die.

  [% USE React %]
  [% React.render('Component', data) %]