Skip to content

Instantly share code, notes, and snippets.

@pencilcheck
Created April 23, 2015 21:56
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 pencilcheck/8c2738a306c486a43d5a to your computer and use it in GitHub Desktop.
Save pencilcheck/8c2738a306c486a43d5a to your computer and use it in GitHub Desktop.
<div class='background-vms'>
<a class='btn btn-default' e-click='search'>Show</a>
{{ if _searched }}
<ul class='search-results'>
<!--{{ _results.each do |item| }}-->
<li>
<img src='assets/images/card.png' />
</li>
<!--{{ end }}-->
<ul>
{{ end }}
</div>
module Main
class MainController < Volt::ModelController
model :page
def search
_searched = true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment