durfdoen-2.0/layouts/quiz.erb
2020-03-11 00:04:27 +01:00

11 lines
258 B
Text

<script>
const answer_values = {};
</script>
<% @items.find_all("/quiz/*").each_with_index do |quest, i| %>
<div id="question_<%=i%>" class="question">
<%= render '/partials/question.*', question: quest %>
</div>
<% end %>
<%= yield %>