blade
Version:
Blade - HTML Template Compiler, inspired by Jade & Haml
20 lines (14 loc) • 629 B
HTML
<script type="text/javascript">
var obj = {"foo":"bar"};
alert(obj.foo);
</script>
This is some text that<br/>should have some <br/><br/>crap in it.<br/>What do you think of that?<br/><br/>This "text" 'might' <need> some "escaping" & stuff<br/>This "text" 'might' <need> some "escaping" & stuff<br/>#{escape} is escaped<br/>!{escape} is escaped<script type="text/javascript">
var str = "This is a cool test";
var madness = "This is a bit " + "weird";
window.alert(madness);
var x = "#{foo}";
//escaped interpolation
var y = "!{foo}";
//escaped interpolation
var z = "\\#{foo}";
</script>