Method: PDK::Template::Renderer::AbstractRenderer#render

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

#render(template_type, name, options = {}) {|dest_path, dest_content, dest_status| ... } ⇒ void

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.

This method returns an undefined value.

Loop through the files in the template type, yielding each rendered file to the supplied block.

Parameters:

  • template_type (PDK::Template::*_TEMPLATE_TYPE)

    The type of template to render

  • name (String)

    The name to use in the rendering process

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

    A list of options to pass through to the renderer. See PDK::Template::TemplateDir helper methods for other options

Options Hash (options):

  • :include_first_time (Boolean)

    Whether to include “first time” items when rendering the project. While it is up to the renderer to implement this the expected behavior is that if the item already exists, it will not be rendererd again. Unlike normal items which are always rendered to keep them in-sync

Yield Parameters:

  • dest_path (String)

    The path of the destination file, relative to the root of the context.

  • dest_content (String)

    The rendered content of the destination file.

  • dest_status (Symbol)

    :unmanage, :delete, :init, :manage

See Also:

  • TemplateDir.render


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

def render(template_type, name, options = {}); end