*! version 2.1.3

Title

boilerplate -- Creates a .do file with some boilerplate code

Syntax

boilerplate
new_filename
[, template(template) ]

boilerplate
[, query
create(filename)
remove(template_name)
default(template_name)
resetdefault
replace]

Main
template(template) choose the template for the boilerplate. The
query option displays a list of templates available and the default

query displays a list of templates available

Modify templates
create(filename) create a template from filename

remove(template_name) removes the template template_name

default(template_name) set the default template to template_name

resetdefault sets the default template back to long

replace allow an existing template to be replaced when using the
create() option

Description

There is usually a set of commands that are included in every .do file a person
makes, like clear _all or log using. What those commands are can
differ from person to person, but most persons have such a standard set. The
purpose of boilerplate is to help creating new .do file by adding those
standard commands (often called boilerplate code). The type of boilerplate code
that will be added to new_filename depends on the template. Use the
query option to see what what templates are available.

This help file discusses how to create your own
template.

Example

. boilerplate , query

. boilerplate foo_dta02.do, template(dta)

Author

Maarten Buis, University of Konstanz

maarten.buis@uni.kn