mirror of
https://github.com/Mibew/CanteenHTML5.git
synced 2024-11-15 00:34:11 +03:00
Update README.md
This commit is contained in:
parent
946984b6e4
commit
6c698ff9ee
@ -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.
|
To create an HTML node, simply call global `html` method, passing in the tag name and then any attributes.
|
||||||
|
|
||||||
```php
|
```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', 'src=home.jpg');
|
echo html('img', 'src=home.jpg');
|
||||||
echo html('img', array('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)
|
Copyright (c) 2013 [Matt Karl](http://github.com/bigtimebuddy)
|
||||||
|
|
||||||
Released under the MIT License.
|
Released under the MIT License.
|
||||||
|
Loading…
Reference in New Issue
Block a user