From 0585df11a53689a2092ad81a1db36adc90f6e152 Mon Sep 17 00:00:00 2001
From: Chris Wong <lambda.fairy@gmail.com>
Date: Mon, 13 Aug 2018 15:34:08 -0700
Subject: [PATCH] Fix examples and start testing them

---
 maud/src/lib.rs | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/maud/src/lib.rs b/maud/src/lib.rs
index 8e7105c..6642c51 100644
--- a/maud/src/lib.rs
+++ b/maud/src/lib.rs
@@ -43,7 +43,11 @@ pub use maud_macros::{html, html_debug};
 ///
 /// # Example
 ///
-/// ```rust,ignore
+/// ```rust
+/// # #![feature(proc_macro_non_items)]
+/// # #![feature(use_extern_macros)]
+/// use maud::{html, Markup, Render};
+///
 /// /// Provides a shorthand for linking to a CSS stylesheet.
 /// pub struct Stylesheet(&'static str);
 ///
@@ -131,18 +135,20 @@ pub use maud_htmlescape::Escaper;
 ///
 /// A minimal web page:
 ///
-/// ```rust,ignore
-/// use maud::DOCTYPE;
+/// ```rust
+/// # #![feature(proc_macro_non_items)]
+/// # #![feature(use_extern_macros)]
+/// use maud::{DOCTYPE, html};
 ///
 /// let markup = html! {
 ///     (DOCTYPE)
 ///     html {
 ///         head {
 ///             meta charset="utf-8";
-///             title "Test page"
+///             title { "Test page" }
 ///         }
 ///         body {
-///             p "Hello, world!"
+///             p { "Hello, world!" }
 ///         }
 ///     }
 /// };