Updates for latest nightly. Use Tera from main branch.

This commit is contained in:
Sergio Benitez 2016-10-08 19:27:33 -07:00
parent 0144b70fac
commit 6275e576b5
7 changed files with 7 additions and 12 deletions

View File

@ -29,5 +29,4 @@ lazy_static = { version = "^0.2", optional = true }
# Tera dependency
[dependencies.tera]
git = "https://github.com/SergioBenitez/tera"
branch = "array-get-filter"
optional = true

View File

@ -1,4 +1,4 @@
#![feature(plugin, rustc_macro)]
#![feature(plugin, proc_macro)]
#![plugin(rocket_codegen)]
extern crate rocket;

View File

@ -1,4 +1,4 @@
#![feature(plugin, rustc_macro)]
#![feature(plugin, proc_macro)]
#![plugin(rocket_codegen)]
extern crate rocket_contrib;

View File

@ -1,4 +1,4 @@
#![feature(plugin, rustc_macro)]
#![feature(plugin, proc_macro)]
#![plugin(rocket_codegen)]
extern crate rocket;

View File

@ -14,10 +14,6 @@ serde_derive = "0.8"
diesel = { git = "https://github.com/SergioBenitez/diesel", features = ["sqlite"] }
diesel_codegen = { git = "https://github.com/SergioBenitez/diesel", default_features = false, features = ["sqlite"] }
[dependencies.tera]
git = "https://github.com/SergioBenitez/tera"
branch = "array-get-filter"
[dependencies.rocket_contrib]
path = "../../contrib"
default_features = false

View File

@ -1,4 +1,4 @@
#![feature(plugin, custom_derive, custom_attribute, rustc_macro)]
#![feature(plugin, custom_derive, custom_attribute, proc_macro)]
#![plugin(rocket_codegen, diesel_codegen)]
extern crate rocket;

View File

@ -23,10 +23,10 @@
<div class="ten columns">
<input type="text" placeholder="enter a task description..."
name="description" id="description" value="" autofocus
class="u-full-width {% if msg %}field-{{msg|first}}{% endif %}" />
class="u-full-width {% if msg %}field-{{msg.0}}{% endif %}" />
{% if msg %}
<small class="field-{{msg|first}}-msg">
{{ msg | get(i=1) }}
<small class="field-{{msg.0}}-msg">
{{ msg.1 }}
</small>
{% endif %}
</div>