Home | Index

r3 Reference Guide

r3 template commands

In r3, templates are located a file structure in $R3HOME/templates. You can manually add or edit templates in this area using your favorite editor. All r3 template names should have the extension .ros.

usage:r3 [-c <arg>] template
template control


searchpath            pathinfo for template
promote [-f]          promote template towards more generic level
specialize            specialize template towards a more specific level
move                  move template between two locations
save [-f] [-c]        save template data to file
load                  load template data from file
delete                delete template
create [-e]           creates a template for the target at the given location
edit                  edits the template at the given location

r3 template create

r3 template create location templatename

Creates a new template at a given location. If the location parameter contains both path and target information, it is available only to that target. If the location parameter contains only path information, it is available to all targets below that path. For example, this command creates the template new.ros at $R3HOME/templates/cookery/us/blah.html/new.ros, which is available only to the target cookery/uk/blah.html:

r3 template create cookery/us/blah.html new.ros

However, if you want the new template to be available to all targets below the cookery/us path, you omit the target name on the end of the location parameter.For example:

r3 template create cookery/us/ new.ros

This command creates a new, generic template named new.ros at $R3HOME/templates/cookery/us/generic/new.ros that would be available to all targets under cookery/us.

aliases

  • none

flags

  • -e: creates the template and opens it in your editor (if an editor is specified in the environment variable $VISUAL or $EDITOR).