Skip to content

Commit

Permalink
Add parse method to Shortcode class
Browse files Browse the repository at this point in the history
  • Loading branch information
Gravitano committed Apr 9, 2015
1 parent 136f40f commit ef10ec0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,17 @@ public function compile($content)
return preg_replace_callback("/{$pattern}/s", [&$this, 'render'], $content);
}

/**
* Parse the given content.
*
* @param string $content
* @return void
*/
public function parse($content)
{
return $this->compile($content);
}

/**
* Render the current calld shortcode.
*
Expand Down

0 comments on commit ef10ec0

Please sign in to comment.