Permalink
Browse files

New version number, and rendering to node list.

  • Loading branch information...
1 parent 52f216d commit 963f860a8a404576f78c0d61363f4860e4e7c026 @cdsmith cdsmith committed Apr 8, 2011
Showing with 10 additions and 4 deletions.
  1. +8 −2 src/Text/Blaze/Renderer/XmlHtml.hs
  2. +1 −1 test/xmlhtml-testsuite.cabal
  3. +1 −1 xmlhtml.cabal
@@ -7,7 +7,7 @@
-- @string@. This also applies to the functions @preEscapedText@,
-- @preEscapedTextValue@...
--
-module Text.Blaze.Renderer.XmlHtml (renderHtml) where
+module Text.Blaze.Renderer.XmlHtml (renderHtml, renderHtmlNodes) where
import Data.Text (Text)
import qualified Data.Text as T
@@ -68,9 +68,15 @@ renderNodes = go []
{-# NOINLINE go #-}
{-# INLINE renderNodes #-}
--- | Render HTML to an xmlhtml Document
+-- | Render HTML to an xmlhtml 'Document'
--
renderHtml :: Html -> Document
renderHtml html = HtmlDocument UTF8 Nothing (renderNodes html [])
{-# INLINE renderHtml #-}
+-- | Render HTML to an xmlhtml list of 'Node's
+--
+renderHtmlNodes :: Html -> [Node]
+renderHtmlNodes html = renderNodes html []
+{-# INLINE renderHtmlNodes #-}
+
@@ -1,5 +1,5 @@
name: xmlhtml-testsuite
-version: 0.1.1
+version: 0.1.3
build-type: Simple
cabal-version: >= 1.6
View
@@ -1,5 +1,5 @@
Name: xmlhtml
-Version: 0.1.2
+Version: 0.1.3
Synopsis: XML parser and renderer with HTML 5 quirks mode
Description: Contains renderers and parsers for both XML and HTML 5
document fragments, which share data structures wo that

0 comments on commit 963f860

Please sign in to comment.