How to create a Google template engine with a simple syntax.
This article is from the April 2017 issue of The Hindu.
It is republished with permission from the publisher.
1.
Create a Google object template: Create a template by typing the word template in the search box, and clicking on Create template.
2.
Generate a template: Click Generate template, and you will be presented with a template object that you can use to generate the HTML.
3.
Create an HTML tag with the template object: Enter the name template-name in the Search box, type the string template-value in the Name box, click Generate, and the generated HTML should be available in the HTML tag that you click on. 4.
Generating the template file: To generate the template files, click on the Generate button at the top of the page.
5.
Save the template as a file: Save the generated template to a file, as shown in the image below.
6.
Copy the template to the clipboard: To copy the generated html, select the HTML template file and paste it into the Text box.
7.
Click Copy, and then click OK to finish the copying process.
8.
Export the generated file as HTML: The generated HTML file is available in a new folder in the Google site.
To export the HTML file, click the File button, and choose Export.
9.
Open the HTML source file in a web browser: The HTML source can be opened in a browser to view the generated code.
To open the HTML in a text editor, click Edit in the upper-right corner of the HTML document, and select HTML as text editor.
10.
Copy and paste the generated content to the page: Paste the generated Content object into the HTML editor.
11.
Save it as a PDF: Click the PDF button, click Save, and a new PDF file will open.
12.
Print the generated PDF: You can print the generated Google template files from the Google website, and from the printing app.
The generated template can be printed out on a document or on a screen or on paper.
13.
Open Google on mobile devices: To print the template, click Print on the top-left of the template-creation dialog.
The Google logo is displayed on the page and a template can also be printed.