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
|
||||
[dependencies.tera]
|
||||
git = "https://github.com/SergioBenitez/tera"
|
||||
branch = "array-get-filter"
|
||||
optional = true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![feature(plugin, rustc_macro)]
|
||||
#![feature(plugin, proc_macro)]
|
||||
#![plugin(rocket_codegen)]
|
||||
|
||||
extern crate rocket;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![feature(plugin, rustc_macro)]
|
||||
#![feature(plugin, proc_macro)]
|
||||
#![plugin(rocket_codegen)]
|
||||
|
||||
extern crate rocket_contrib;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![feature(plugin, rustc_macro)]
|
||||
#![feature(plugin, proc_macro)]
|
||||
#![plugin(rocket_codegen)]
|
||||
|
||||
extern crate rocket;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue