NAME Mojolicious::Plugin::Riotjs - A Mojolicious plugin for including riot.js .tag files in your project VERSION 0.01 DESCRIPTION Mojolicious::Plugin::Riotjs is a Mojolicious plugin for including riot.js ".tag" files in your project. It also makes it very easy to bundle the latest riot.js . What is riotjs? From the web page : A REACT-LIKE, 2.5KB USER INTERFACE LIBRARY Custom tags - Virtual DOM - Full stack - IE8 SYNOPSIS use Mojolicious::Lite; get "/" => "index"; app->plugin("riotjs"); app->asset( "app.js" => qw( https://muut.com/riotjs/dist/demo/js/riot.js /js/todo.tag /js/main.js ) ); app->start; __DATA__ @@ /js/todo.tag

{ opts.title }

  • { item.title }
this.items = [] add(e) { var input = e.target[0] if (input.value.length) this.items.push({ title: input.value }) input.value = '' }
@@ /js/main.js riot.mount('todo') @@ index.html.ep Riot.js Demo %= asset "app.js" METHODS register Will register the Mojolicious::Plugin::Riotjs::Preprocessor with the ".tag" file extension. 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"