Skip to content

Instantly share code, notes, and snippets.

@pencilcheck
Created April 23, 2015 21:48
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/c11a49f50831ed5cbdb3 to your computer and use it in GitHub Desktop.
Save pencilcheck/c11a49f50831ed5cbdb3 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
reactive_accessor :searched
def search
searched = true
end
end
end
@ryanstout
Copy link

Same as the next issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment