Example #1
0
 /**
  * Register plugin
  *
  * @param Ant\Ant $ant instance
  *
  * @return void
  */
 public function register(Ant $ant)
 {
     $this->event = $ant->bind('build', function ($content) {
         $haml = new HamlPHP();
         return $haml->parseString($content);
     });
 }
Example #2
0
 /**
  * Register plugin
  *
  * @param Ant\Ant $ant instance
  *
  * @return void
  */
 public function register(Ant $ant)
 {
     $this->event = $ant->bind('build', function ($content) {
         $md = new Parsedown();
         return $md->text($content);
     });
 }
Example #3
0
 /**
  * Register plugin
  *
  * @param Ant\Ant $ant instance
  *
  * @return void
  */
 public function register(Ant $ant)
 {
     $callback = function ($content) {
         $jade = new PicoJade();
         return $jade->compile($content);
     };
     $this->event = $ant->bind('build', $callback);
 }
Example #4
0
 /**
  * Register plugin
  *
  * @param Ant\Ant $ant instance
  *
  * @return void
  */
 public function register(Ant $ant)
 {
     $this->event = $ant->bind('build', array($this, 'compress'));
 }
Example #5
0
 /**
  * Register plugin
  *
  * @param Ant\Ant $ant instance
  *
  * @return void
  */
 public function register(Ant $ant)
 {
     $this->event = $ant->bind('exec', array($this, 'validate'));
 }