2 namespace wcf\system\template\plugin;
3 use wcf\system\html\simple\HtmlSimpleParser;
4 use wcf\system\template\TemplateScriptingCompiler;
7 * Template prefilter plugin that replaces simple embedded object placeholders.
9 * This template plugin is intended for internal use only.
11 * @author Alexander Ebert
12 * @copyright 2001-2018 WoltLab GmbH
13 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
14 * @package WoltLabSuite\Core\System\Template\Plugin
16 * @see \wcf\data\page\content\PageContent::getParsedTemplate()
18 class SimpleEmbeddedObjectPrefilterTemplatePlugin implements IPrefilterTemplatePlugin {
22 public function execute($templateName, $sourceContent, TemplateScriptingCompiler $compiler) {
23 return HtmlSimpleParser::getInstance()->parseTemplate($sourceContent);