|
||||
Creating a Template |
||||
Template FoldersA template is made up of all files that reside in a template folder. A template contains at least one template configuration file and may contain any number of supporting files. To reveal the folder where templates are stored, chose File->Custom Templates->Reveal Template Folder. In the template pictured, Default.html is the template configuration file and styles.css is a supporting file. Creating Your Own Template
To create a new template choose File->Custom Templates->Duplicate Template and duplicate the "Default" template. You can then modify Default.html in the newly created template as needed. Template Configuration File
The template configuration file is used to tell ScreenSteps how to process the template. It consists of four sections - Configuration, Content, Step and Media:Image. Each section starts with "[-- START SECTION_NAME --]" and ends with "[-- END SECTION_NAME --]". The start and end entries appear on their own line. Configuration Section
This section provides processing instructions as well as template output information. Parameters
text style - html, xml, plain
newline - unix, windows, mac
output name - string
media folder - string
Variables
@PROJECT_NAME - The name of the project the user provides when exporting the session. Media:Image Section
The media:image section is the text that will be used for each image in your document. In our HTML example each image will be wrapped in a IMG tag. Variables
%source% - the relative path of the image.
Step Section
The step section contains text that will be replicated for each step in the exported document. Variables
%Title% - the step title.
Navigation Section
The navigation section can be used for creating a list of all step titles in the lesson. Variables
%Title% - the step title.
Content Section
The content section contains the main body of the template. Variables
%PageTitle% - the title of the lesson with formatting removed.
Sharing Templates
You can easily share templates by exporting a template package. Choose File->Custom Templates->Export Template... to export a template package. You can then send this file to others who can install the template for use when exporting HTML. |
||||