NAME
Mojolicious::Plugin::AssetPack::Preprocessor::Jsx - Preprocessor for JavaScript XML syntax (react.js)
DESCRIPTION
Mojolicious::Plugin::AssetPack::Preprocessor::Jsx is a preprocessor for .jsx
files.
JSX is a JavaScript XML syntax transform recommended for use with React. See http://facebook.github.io/react/docs/jsx-in-depth.html for more information.
Installation on Ubuntu and Debian:
$ sudo apt-get install npm
$ sudo npm install -g react-tools
ATTRIBUTES
executable
$path = $self->executable;
Holds the path to the "jsx" executable. Default to just "jsx".
METHODS
can_process
Returns true if "executable" points to an actual file.
process
This method use "jsx" to process $text
.
See "process" in Mojolicious::Plugin::AssetPack::Preprocessor.
COPYRIGHT AND LICENSE
Copyright (C) 2014, Jan Henning Thorsen
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
AUTHOR
Jan Henning Thorsen - jhthorsen@cpan.org