Skip to content

Instantly share code, notes, and snippets.

@rpgmaker
Created April 17, 2013 03:10
Show Gist options
  • Save rpgmaker/5401502 to your computer and use it in GitHub Desktop.
Save rpgmaker/5401502 to your computer and use it in GitHub Desktop.
Razor JS with Email Detection
<span>[email protected]</span>
<!--<script src='http://code.jquery.com/jquery-1.9.1.min.js'></script>-->
<script type='text/javascript'>
var Model = {},
ViewResponse = function () {
return {
Buffer: jQuery('<div/>'),
Clear: function () { this.Buffer.empty(); },
Write: function (data) { this.Buffer.append(data); },
GetBuffer: function () { return this.Buffer.contents(); },
SetBuffer: function (data) { this.Buffer = data; }
}
};
(function(){
var value = 'World';
})();
</script>
@{
var value = 'World';
}
<span>[email protected]</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment