~johnsca/charm-helpers/cf-from-spec

« back to all changes in this revision

Viewing changes to charmhelpers/core/templating.py

  • Committer: Cory Johns
  • Date: 2014-06-12 21:22:26 UTC
  • Revision ID: cory.johns@canonical.com-20140612212226-e10re536se1u9z3n
Added docstring info for including render_erb tool via chsync

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
    The `context_impl`, if given, should point to a Ruby file containing a Context
71
71
    class implementation for converting the context hash to template bindings.
72
72
 
73
 
    Note: Using this requires ruby to be installed.
 
73
    Note: Using this requires ruby to be installed.  Additionally, it requires a
 
74
    command-line tool from charmhelpers that is not included by default; to
 
75
    use this function, you will need to add the following to your list of
 
76
    includes in `charm-helpers.yml`:
 
77
 
 
78
        - cli.scripts|inc=*
74
79
    """
75
80
    if templates_dir is None:
76
81
        templates_dir = os.path.join(hookenv.charm_dir(), 'templates')