Skip to content

Instantly share code, notes, and snippets.

@lefnire
Last active December 19, 2015 02:58
Show Gist options
  • Save lefnire/5886469 to your computer and use it in GitHub Desktop.
Save lefnire/5886469 to your computer and use it in GitHub Desktop.
derby-examples/todos derby#282
diff --git a/todos/views/todos/index.html b/todos/views/todos/index.html
index 874c8cd..cf79592 100644
--- a/todos/views/todos/index.html
+++ b/todos/views/todos/index.html
@@ -4,7 +4,7 @@
<Body:>
<div id="overlay"></div>
<form id="head" x-bind="submit: add">
- <h1>Todos <span>{remaining(_page.list)} remaining</span></h1>
+ <h1>Todos <span>{#with _page.list as :list}{remaining(:list)}{/} remaining</span></h1>
<div id="add">
<div id="add-input"><input id="new-todo" value="{_page.newTodo}"></div>
<input id="add-button" type="submit" value="Add">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment