Generating a Web Page template from an HTML document
Similar to creating a blank Web Page template, the process of generating a template from an existing HTML document is accomplished through the Web Page template wizard. This method is useful if you have an existing project, and you want to migrate your code to Gloop. To create a template this way:
- Right-click on or underneath the
codedirectory of the Martini package where your template will reside. From the appearing context menu, select New > Web Page Template. This will launch the Web Page template wizard.
- Provide the name of your template in the wizard, and select HTML as the source. You can also re-specify where your template will reside.
- Click Next.
Specify the source HTML in the next page of the wizard. The source HTML can be specified via URL, file, or text.
Check the Extract Head checkbox if you want to create a separate Gloop template for the
<head>tag. This template would be named with a
Headsuffix. If the name you provided for your template earlier is
Index, then the head template would be named
The Extract Footer checkbox does the same; albeit for the
<footer>tag. You can specify a custom class for the footer as well if the content you want is not in the
<footer>tag. With this option, the footer template would be named with a
Once you're happy with the configuration, click Finish.