HomePhorge

(#7564) Finish templates
4662f4d0aa57Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#7564) Finish templates

This is a rebase of the following commits:

  • (#7563) Add a template for manpages

In order to generate manpages in a reasonably maintainable way, we need
to format text from the Faces help API for use with Ronn
(https://github.com/rtomayko/ronn/).

This commit adds a man template to the help templates folder; it has
been verified to generate Ronn-friendly input text. It isn't currently
called by any applications, but can be demonstrated by exchanging it for
face.erb.

  • (#7634) Change ERB trim mode used in the Faces help API

<%= something -%> tags (note the minus) are unavoidably necessary at at
least one point in the Faces help templates. ERB objects instantiated
with the % trim mode will blow up horribly whenever one of these tags
appears.

This commit changes the trim mode to - and refactors all help
templates accordingly.

  • (#7563) Refactor short help templates

This commit attempts to bring the short face and action help templates closer to the goals of fitting cleanly on one screen, fitting the prevailing *nix aesthetic, and being useful without overwhelming the user.

Details

Provenance
nfagerlund <nick.fagerlund@gmail.com>Authored on
Matt Robinson <matt@puppetlabs.com>Committed on May 27 2011, 1:04 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU331d8128288f: (#7561) Complete help text for all faces and actions
Branches
Unknown
Tags
Unknown

Event Timeline

Matt Robinson <matt@puppetlabs.com> committed rPU4662f4d0aa57: (#7564) Finish templates (authored by nfagerlund <nick.fagerlund@gmail.com>).May 27 2011, 1:04 AM