*
* @param $templateInstance An instance of a template engine
* @param $blockName Name of the block we shall generate
- * @return $helperInstance A prepared instance of this class
+ * @return $helperInstance A prepared instance of this helper
*/
public final static function createWebBlockHelper (CompileableTemplate $templateInstance, $blockName) {
// Get new instance
* @return void
*/
public function flushContent () {
- $this->partialStub();
+ // Get template instance
+ $templateInstance = $this->getTemplateInstance();
+
+ // Get the template named like this block
+ $templateInstance->loadCodeTemplate("block_" . $this->getBlockName());
+
+ // Transfer it to the template instance
+ $templateInstance->assignVariable($this->getBlockName(), $templateInstance->getRawTemplateData());
}
}