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 # Tera dependency
[dependencies.tera] [dependencies.tera]
git = "https://github.com/SergioBenitez/tera" git = "https://github.com/SergioBenitez/tera"
branch = "array-get-filter"
optional = true optional = true

View File

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

View File

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

View File

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

View File

@ -14,10 +14,6 @@ serde_derive = "0.8"
diesel = { git = "https://github.com/SergioBenitez/diesel", features = ["sqlite"] } diesel = { git = "https://github.com/SergioBenitez/diesel", features = ["sqlite"] }
diesel_codegen = { git = "https://github.com/SergioBenitez/diesel", default_features = false, 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] [dependencies.rocket_contrib]
path = "../../contrib" path = "../../contrib"
default_features = false 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)] #![plugin(rocket_codegen, diesel_codegen)]
extern crate rocket; extern crate rocket;

View File

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