Boilerplate Text

Overview


When documenting a process or model, much of what needs to put to paper has been put to paper before in some form. Typically, you only need to customize a section of the text, in order to fit the document to your present situation.

The davinci boilerplate library hosts common boiler plate text that you can use in your documents.

Adding Boilerplate to a Document


If you have a section of text you wish to add to a latex document, you can just copy and paste the text to the document.

If the text is hosted at a particular URL, you can use the davinci dynamic text spec to tell the document to load the text. A simple way to do this is to add the following to your document:


{= $url('http://server.com/boilerplate.txt') =}
					


where you replace the provided URL with the URL of your boilerplate.

Rendering Templates


Occasionally, you will want to use a template that includes dynamic text. That is, after the the $url function retrieves the text, you want the document to render the dynamic text in the template.

When you want dynamic text to render the text, and then re-render after it has been rendered, you use the {! !} notation. This functions like the {= =} notation, but it prompts the dynamic text engine to re-render after it has been rendered.

So if your boilerplate text needs to be rendered again, you could use the following:


{! $url('http://www.server.com/boilerplate.txt') !}