From 6c698ff9ee5c1ef1120996df749164687c44fd03 Mon Sep 17 00:00:00 2001 From: Matt Karl Date: Fri, 31 Oct 2014 12:39:38 -0400 Subject: [PATCH] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 68b9053..584ae10 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,12 @@ require 'vendor/autoload.php'; To create an HTML node, simply call global `html` method, passing in the tag name and then any attributes. ```php +// Enable the global use of html() +Canteen\HTML5\HTML5::useGlobal(); + +// Turn on autoloading if not using composer's autoloading +Canteen\HTML5\HTML5::autoload(); + echo html('img src=home.jpg'); echo html('img', 'src=home.jpg'); echo html('img', array('src'=>'home.jpg')); @@ -238,4 +244,4 @@ ant docs Copyright (c) 2013 [Matt Karl](http://github.com/bigtimebuddy) -Released under the MIT License. \ No newline at end of file +Released under the MIT License.