Fix maud_extras
This commit is contained in:
parent
e0c7fcf055
commit
6a593388ae
2 changed files with 14 additions and 16 deletions
maud_extras
|
@ -10,7 +10,6 @@ description = "Extra bits and pieces for use in Maud templates."
|
|||
|
||||
[dependencies]
|
||||
maud = { path = "../maud", features = ["iron"] }
|
||||
maud_macros = { path = "../maud_macros" }
|
||||
|
||||
[lib]
|
||||
path = "lib.rs"
|
||||
|
|
|
@ -1,19 +1,18 @@
|
|||
#![feature(plugin)]
|
||||
#![plugin(maud_macros)]
|
||||
#![feature(proc_macro)]
|
||||
|
||||
extern crate maud;
|
||||
|
||||
use maud::{Markup, Render};
|
||||
use maud::{Markup, Render, html};
|
||||
|
||||
/// Links to an external stylesheet.
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```rust
|
||||
/// # #![feature(plugin)]
|
||||
/// # #![plugin(maud_macros)]
|
||||
/// # #![feature(proc_macro)]
|
||||
/// # extern crate maud;
|
||||
/// # extern crate maud_extras;
|
||||
/// # use maud::html;
|
||||
/// # use maud_extras::*;
|
||||
/// # fn main() {
|
||||
/// let markup = html! { (Css("styles.css")) };
|
||||
|
@ -36,10 +35,10 @@ impl<T: AsRef<str>> Render for Css<T> {
|
|||
/// # Example
|
||||
///
|
||||
/// ```rust
|
||||
/// # #![feature(plugin)]
|
||||
/// # #![plugin(maud_macros)]
|
||||
/// # #![feature(proc_macro)]
|
||||
/// # extern crate maud;
|
||||
/// # extern crate maud_extras;
|
||||
/// # use maud::html;
|
||||
/// # use maud_extras::*;
|
||||
/// # fn main() {
|
||||
/// let markup = html! { (Js("app.js")) };
|
||||
|
@ -62,10 +61,10 @@ impl<T: AsRef<str>> Render for Js<T> {
|
|||
/// # Example
|
||||
///
|
||||
/// ```rust
|
||||
/// # #![feature(plugin)]
|
||||
/// # #![plugin(maud_macros)]
|
||||
/// # #![feature(proc_macro)]
|
||||
/// # extern crate maud;
|
||||
/// # extern crate maud_extras;
|
||||
/// # use maud::html;
|
||||
/// # use maud_extras::*;
|
||||
/// # fn main() {
|
||||
/// let markup = html! { (Meta("description", "test description")) };
|
||||
|
@ -88,10 +87,10 @@ impl<T: AsRef<str>, U: AsRef<str>> Render for Meta<T, U> {
|
|||
/// # Example
|
||||
///
|
||||
/// ```rust
|
||||
/// # #![feature(plugin)]
|
||||
/// # #![plugin(maud_macros)]
|
||||
/// # #![feature(proc_macro)]
|
||||
/// # extern crate maud;
|
||||
/// # extern crate maud_extras;
|
||||
/// # use maud::html;
|
||||
/// # use maud_extras::*;
|
||||
/// # fn main() {
|
||||
/// let markup = html! { (Title("Maud")) };
|
||||
|
@ -114,10 +113,10 @@ impl<T: AsRef<str>> Render for Title<T> {
|
|||
/// # Example
|
||||
///
|
||||
/// ```rust
|
||||
/// # #![feature(plugin)]
|
||||
/// # #![plugin(maud_macros)]
|
||||
/// # #![feature(proc_macro)]
|
||||
/// # extern crate maud;
|
||||
/// # extern crate maud_extras;
|
||||
/// # use maud::html;
|
||||
/// # use maud_extras::*;
|
||||
/// # fn main() {
|
||||
/// let markup = html! { (Charset("utf-8")) };
|
||||
|
@ -140,10 +139,10 @@ impl<T: AsRef<str>> Render for Charset<T> {
|
|||
/// # Example
|
||||
///
|
||||
/// ```rust
|
||||
/// # #![feature(plugin)]
|
||||
/// # #![plugin(maud_macros)]
|
||||
/// # #![feature(proc_macro)]
|
||||
/// # extern crate maud;
|
||||
/// # extern crate maud_extras;
|
||||
/// # use maud::html;
|
||||
/// # use maud_extras::*;
|
||||
/// # fn main() {
|
||||
/// let markup = html! { (MetaProperty("og:description", "test description")) };
|
||||
|
|
Loading…
Add table
Reference in a new issue