JSFiddle - React, Tailwind, and code Playground

by lega911

HTML

<script src="http://yourjavascript.com/14512157654/notevil.js"></script>
<script src="http://angularlight.org/bin/alight_0.8.last.min.js"></script>
<div al-app>
    <input type="text" al-value="name" /> {{name}}
</div>

JavaScript

// turn on notevil, https://github.com/mmckegg/notevil
alight.utilits.compile.Function = notevil.Function;
//alight.utilits.compile.Function = null;

// fill cache
alight.utilits.compile.cache['name#-v'] = {
    fn: function(s) {return s.name}
};
alight.utilits.compile.cacheText = {};
alight.utilits.compile.cacheSimpleText[" {{name}}\n"] = {
    fn: function(s) {return ''+(s.name?s.name:'')}
};