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.
|
||||
|
||||
```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'));
|
||||
|
Loading…
Reference in New Issue
Block a user