Skip to content

Commit

Permalink
update for 0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
arily authored May 10, 2017
1 parent c493b24 commit 9c2d8d9
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,35 @@
A F**KING EASY WAY TO WRITE HTML TAGS

### changelog
#### 0.0.2 using buffer to incrase speed and lowing cost.
#### 0.0.3
##### using multi-arguments in body.
##### increase array-re-using-ability for such as top, footer and so on.
##### bug fix (rtn made a typo)
##### $$$$$ more memory cost
```php
$body = [[ 'h1'=>'Your LangShiID:'],['br'=>''],['h2'=>file_get_contents('http://composer.subnet.arily.tk/api/wolf')]];

$html = new htmltagger();
html->setBody($body)->prn();
```
this' a 0.0.1-0.0.2 array set for phpEZhtmltagger.
in 0.0.3 we need make them separate.
```php
$h1 = ['h1'=>'Your LangShiID:'];
$br = ['br'=>'']; // empty string to output <**> and NULL to output <** />
$h2 = ['h2'=>file_get_contents('http://composer.subnet.arily.tk/api/wolf')];

$html = new htmltagger();
$html->setBody($h1,br,h2)->prn();
```
```html
<body>
<h1>Your LangShiID:</h1>
<br>
<h2>kAthcirnoAm</h2>
</body>
```
#### 0.0.2 using buffer to increase speed and lowing cost.
also we print \<head\> first even we aren't finish prepearing \<body\> so browser can pull js and css before we feed him \<body\>.
this'll get an instant-loading-speed-up-feeling because we might have a huge \<body\>.

Expand Down

0 comments on commit 9c2d8d9

Please sign in to comment.