Skip to content

Instantly share code, notes, and snippets.

@mbajoras
Last active December 18, 2015 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbajoras/5733783 to your computer and use it in GitHub Desktop.
Save mbajoras/5733783 to your computer and use it in GitHub Desktop.
Underscore.js template for my blog article about Marionette.js stateful views.
<script id="login-template" type="text/template">
<div class="msg-success hide">You are now logged in.</div>
<div class="error-bad-auth hide">Username and/or password incorrect.</div>
<div class="error-unknown hide"><%- stateDetails %></div>
<form action="#" method="post">
<h1>Login</h1>
<input name="username" type="text" value="<%- username %>">
<input name="password" type="password" value="<%- password %>">
<input type="submit" value="Log In">
</form>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment