Fix maud_extras

This commit is contained in:
Chris Wong 2017-07-08 20:27:14 +12:00
parent e0c7fcf055
commit 6a593388ae
2 changed files with 14 additions and 16 deletions
maud_extras

View file

@ -10,7 +10,6 @@ description = "Extra bits and pieces for use in Maud templates."
[dependencies] [dependencies]
maud = { path = "../maud", features = ["iron"] } maud = { path = "../maud", features = ["iron"] }
maud_macros = { path = "../maud_macros" }
[lib] [lib]
path = "lib.rs" path = "lib.rs"

View file

@ -1,19 +1,18 @@
#![feature(plugin)] #![feature(proc_macro)]
#![plugin(maud_macros)]
extern crate maud; extern crate maud;
use maud::{Markup, Render}; use maud::{Markup, Render, html};
/// Links to an external stylesheet. /// Links to an external stylesheet.
/// ///
/// # Example /// # Example
/// ///
/// ```rust /// ```rust
/// # #![feature(plugin)] /// # #![feature(proc_macro)]
/// # #![plugin(maud_macros)]
/// # extern crate maud; /// # extern crate maud;
/// # extern crate maud_extras; /// # extern crate maud_extras;
/// # use maud::html;
/// # use maud_extras::*; /// # use maud_extras::*;
/// # fn main() { /// # fn main() {
/// let markup = html! { (Css("styles.css")) }; /// let markup = html! { (Css("styles.css")) };
@ -36,10 +35,10 @@ impl<T: AsRef<str>> Render for Css<T> {
/// # Example /// # Example
/// ///
/// ```rust /// ```rust
/// # #![feature(plugin)] /// # #![feature(proc_macro)]
/// # #![plugin(maud_macros)]
/// # extern crate maud; /// # extern crate maud;
/// # extern crate maud_extras; /// # extern crate maud_extras;
/// # use maud::html;
/// # use maud_extras::*; /// # use maud_extras::*;
/// # fn main() { /// # fn main() {
/// let markup = html! { (Js("app.js")) }; /// let markup = html! { (Js("app.js")) };
@ -62,10 +61,10 @@ impl<T: AsRef<str>> Render for Js<T> {
/// # Example /// # Example
/// ///
/// ```rust /// ```rust
/// # #![feature(plugin)] /// # #![feature(proc_macro)]
/// # #![plugin(maud_macros)]
/// # extern crate maud; /// # extern crate maud;
/// # extern crate maud_extras; /// # extern crate maud_extras;
/// # use maud::html;
/// # use maud_extras::*; /// # use maud_extras::*;
/// # fn main() { /// # fn main() {
/// let markup = html! { (Meta("description", "test description")) }; /// let markup = html! { (Meta("description", "test description")) };
@ -88,10 +87,10 @@ impl<T: AsRef<str>, U: AsRef<str>> Render for Meta<T, U> {
/// # Example /// # Example
/// ///
/// ```rust /// ```rust
/// # #![feature(plugin)] /// # #![feature(proc_macro)]
/// # #![plugin(maud_macros)]
/// # extern crate maud; /// # extern crate maud;
/// # extern crate maud_extras; /// # extern crate maud_extras;
/// # use maud::html;
/// # use maud_extras::*; /// # use maud_extras::*;
/// # fn main() { /// # fn main() {
/// let markup = html! { (Title("Maud")) }; /// let markup = html! { (Title("Maud")) };
@ -114,10 +113,10 @@ impl<T: AsRef<str>> Render for Title<T> {
/// # Example /// # Example
/// ///
/// ```rust /// ```rust
/// # #![feature(plugin)] /// # #![feature(proc_macro)]
/// # #![plugin(maud_macros)]
/// # extern crate maud; /// # extern crate maud;
/// # extern crate maud_extras; /// # extern crate maud_extras;
/// # use maud::html;
/// # use maud_extras::*; /// # use maud_extras::*;
/// # fn main() { /// # fn main() {
/// let markup = html! { (Charset("utf-8")) }; /// let markup = html! { (Charset("utf-8")) };
@ -140,10 +139,10 @@ impl<T: AsRef<str>> Render for Charset<T> {
/// # Example /// # Example
/// ///
/// ```rust /// ```rust
/// # #![feature(plugin)] /// # #![feature(proc_macro)]
/// # #![plugin(maud_macros)]
/// # extern crate maud; /// # extern crate maud;
/// # extern crate maud_extras; /// # extern crate maud_extras;
/// # use maud::html;
/// # use maud_extras::*; /// # use maud_extras::*;
/// # fn main() { /// # fn main() {
/// let markup = html! { (MetaProperty("og:description", "test description")) }; /// let markup = html! { (MetaProperty("og:description", "test description")) };