/** * Adds a template. * * <pre> * <p:template * name = qname> * <!-- Content: p:with-param*, template --> * </p:template> * </pre> * * The `name` attribute defines the name of the template. The content of the markup defines * the template. * * @param array $args * @param Engine $patron * @param mixed $template */ public static function markup_template(array $args, Engine $patron, $template) { $patron->addTemplate(TemplateName::from($args['name'])->as_partial, $template); }