From 867699409ef033d2aef5004a03c35cbda2bb2343 Mon Sep 17 00:00:00 2001 From: Luke Fender Date: Sun, 7 Sep 2014 15:14:07 -0400 Subject: [PATCH] Update readme with streaming instructions --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 1e06239..8c5378a 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,11 @@ See `html2haml --help`: -?, -h, --help Show this message -v, --version Print version +Alternatively, to convert strings on the fly: +```ruby +require 'html2haml' +Haml::HTML.new('

Hello world

', {:erb => nil}).render() # => "%h1 Hello world\n" +``` ## License Copyright (c) 2006-2014 Hampton Catlin, Natalie Weizenbaum and Norman Clarke