Exemple #1
0
 /**
  * Unregister plugin
  *
  * @param Ant\Ant $ant instance
  *
  * @return void
  */
 public function unregister(Ant $ant)
 {
     $ant->unbind('build', $this->event);
 }
Exemple #2
0
 /**
  * Unregister plugin
  *
  * @param Ant\Ant $ant instance
  *
  * @return void
  */
 public function unregister(Ant $ant)
 {
     $ant->unregister('leaf');
 }
Exemple #3
0
 /**
  * Unregister plugin
  *
  * @param Ant\Ant $ant instance
  *
  * @return void
  */
 public function unregister(Ant $ant)
 {
     $ant->unregister('asset');
 }
Exemple #4
0
 /**
  * Unregister plugin
  *
  * @param Ant\Ant $ant instance
  *
  * @return void
  */
 public function unregister(Ant $ant)
 {
     $ant->unregister('css');
 }
Exemple #5
0
 /**
  * Unregister plugin
  *
  * @param Ant\Ant $ant instance
  *
  * @return void
  */
 public function unregister(Ant $ant)
 {
     $ant->unregister('faker');
 }
Exemple #6
0
 /**
  * Unregister plugin
  *
  * @param Ant\Ant $ant instance
  *
  * @return void
  */
 public function unregister(Ant $ant)
 {
     $ant->unregister('youtube');
 }
Exemple #7
0
<?php

error_reporting(-1);
require __DIR__ . '/Ant/Ant.php';
$GLOBALS['sasaika'] = 'Hellow';
\Ant\Ant::init()->setup(array('view' => $_SERVER['DOCUMENT_ROOT'] . "templates", 'cache' => $_SERVER['DOCUMENT_ROOT'] . "cache", 'extension' => 'php', 'debug' => true, 'minify' => false))->activate('Asset')->activate('YouTube')->activate('Validator')->rule('~{@.+?@}~', function ($match) {
    return '<h1>Ebal ebal</h1>';
});
echo \Ant\Ant::init()->get('me')->assign(['name' => 'Jack', 'attr' => '<>\'"', 'table' => [range(0, 10), range(10, 20), range(20, 30), range(30, 40), range(40, 50)]])->draw();