Project

General

Profile

Actions

Bug #19735

open

Plugin API for extending template helpers does not work

Added by Lukas Zapletal over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

We added extend_template_helpers API methods but it does not work, methods added via this extension are not available in Foreman::Renderer. Rendering is not possible:

Create a plugin, add new method, try to use it in a template in both safemode and non-safemode. Result:

There was an error rendering the Discovery Red Hat kexec template: undefined local variable or method `discovery_kexec_kernel' for #<#<Class:0x0055f4717ade40>:0x0055f471772c28>
Did you mean?  discovery_rule_url

Related issues 2 (0 open2 closed)

Related to Foreman - Feature #14588: Improve extending template helpers from plugin ClosedMarek Hulán04/12/2016Actions
Related to Discovery - Refactor #19737: Kernel and initram not shown in preview modeClosedLukas ZapletalActions
Actions

Also available in: Atom PDF