Thanks to visit codestin.com
Credit goes to github.com

Skip to content

isRodgef/htmlWrapper_php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

htmlWrapper_php

html wrapper in php

Basically I was tired of having php code that look liked this

  <body>
  <?php
    $echo "<br>"
  ?>
  </body>
  

The reason I disliked this was because I found it differentiate the php from html so I created a htmlWrapper Class that would hold the php tags and only output the html at the end of the calling file (i.e just before it gets send to the client)

New possible syntax (will likely change)

  $body = new Tag("body",true);
  $body->addText("s");
  $body->commit();
  echo $body->display();
  

ouput should be

<body>s</body>

TODO add basic usage example fix nestes tags bug fix

About

html wrapper in php

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages