Skip to content

Instantly share code, notes, and snippets.

@jeremiak
Created August 20, 2014 17:55
Show Gist options
  • Save jeremiak/7b9db591fa4f3013bf44 to your computer and use it in GitHub Desktop.
Save jeremiak/7b9db591fa4f3013bf44 to your computer and use it in GitHub Desktop.
this seems like I'm going the wrong direction for separation of concerns
@!(title, style)
<div class="container">
@{
styles = style.split(' ')
}
@if (styles.indexOf('back') != -1) {
<span class="back">
<div class="chevron left"></div>
<span class="back-label">Back</span>
</span>
}
<span class="title">@title</span>
@if (styles.indexOf('search') != -1) {
<a href="#" class="glyphicon glyphicon-search">
</a>
}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment