Method: PDK::Template::Renderer::AbstractRenderer#render_single_item

Defined in:
lib/pdk/template/renderer.rb

#render_single_item(item_path, template_data_hash = {}) ⇒ String, Nil

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method is abstract.

Render a single item and return the resulting string. This is used when rendering things like a new Task or a new Puppet Classes. Rendering a single item is different than redering an entire project, like a entire Puppet Module or Control Repo. This method is used in conjunction with .has_single_item?

Parameters:

  • item_path (String)

    The path of the single item to render

  • template_data_hash (Hash{Object => Object}) (defaults to: {})

    A hash of information which will be used in the rendering process

Returns:

  • (String, Nil)

    The rendered content, or nil of the file could not be rendered



92
# File 'lib/pdk/template/renderer.rb', line 92

def render_single_item(item_path, template_data_hash = {}); end