mirror of https://github.com/rwf2/Rocket.git
Updates for latest nightly. Use Tera from main branch.
This commit is contained in:
parent
0144b70fac
commit
6275e576b5
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![feature(plugin, rustc_macro)]
|
#![feature(plugin, proc_macro)]
|
||||||
#![plugin(rocket_codegen)]
|
#![plugin(rocket_codegen)]
|
||||||
|
|
||||||
extern crate rocket;
|
extern crate rocket;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![feature(plugin, rustc_macro)]
|
#![feature(plugin, proc_macro)]
|
||||||
#![plugin(rocket_codegen)]
|
#![plugin(rocket_codegen)]
|
||||||
|
|
||||||
extern crate rocket;
|
extern crate rocket;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue