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.