modifs.mineures sans commentaires
This commit is contained in:
parent
e59b136b64
commit
b99cb3a112
@ -2,10 +2,40 @@
|
||||
namespace nulib\web;
|
||||
|
||||
use nulib\php\content\c;
|
||||
use nulib\web\content\BlockTag;
|
||||
use nulib\web\content\EmptyTag;
|
||||
use nulib\web\content\SimpleTag;
|
||||
use nulib\web\content\Tag;
|
||||
use nulib\web\content\v;
|
||||
|
||||
/**
|
||||
* Class vo: classe outil pour afficher les tags générés par {@link v}
|
||||
*
|
||||
* @method BlockTag h1($content)
|
||||
* @method BlockTag h2($content)
|
||||
* @method BlockTag h3($content)
|
||||
* @method BlockTag h4($content)
|
||||
* @method BlockTag h5($content)
|
||||
* @method BlockTag h6($content)
|
||||
* @method EmptyTag hr($content=null)
|
||||
* @method EmptyTag br($content=null)
|
||||
* @method Tag div($content)
|
||||
* @method Tag p($content)
|
||||
* @method Tag pre($content)
|
||||
* @method SimpleTag span($content)
|
||||
* @method SimpleTag b($content)
|
||||
* @method SimpleTag i($content)
|
||||
* @method SimpleTag em($content)
|
||||
* @method SimpleTag strong($content)
|
||||
* @method BlockTag ul($content)
|
||||
* @method BlockTag ol($content)
|
||||
* @method BlockTag li($content)
|
||||
* @method BlockTag table($content)
|
||||
* @method BlockTag thead($content)
|
||||
* @method BlockTag tbody($content)
|
||||
* @method BlockTag tr($content)
|
||||
* @method Tag th($content)
|
||||
* @method Tag td($content)
|
||||
*/
|
||||
class vo {
|
||||
static function __callStatic($name, $args) {
|
||||
|
||||
@ -7,6 +7,6 @@ use nulib\web\vo;
|
||||
vo::h1("titre");
|
||||
vo::p("paragraph");
|
||||
vo::p([
|
||||
"il y a", v::b(4), "lapins.",
|
||||
"allons à la plage",
|
||||
"Il y a ", v::b(4), " lapins.",
|
||||
"Allons à la plage",
|
||||
]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user