Documentation
¶
Overview ¶
Render html according to html templates
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶ added in v0.1.1
type RenderData ¶
type RenderData struct { Body template.HTML Head template.HTML Title string Description string Layout string RootCrumb string Filename string Date string DateUpdated string MachineDate string MachineDateUpdated string Ext string OutFilename string Tags []string TagsListing []tag.Tag Backlinks, Relatedlinks, Crumbs, Listing []listing.Listing TOC bool ShowHeader bool }
All fields used in the html templates.
* Title: page title (set in title tags and in document)
* Description: body description
* Filename: has no extension. Used for navigation crumb.
func (*RenderData) Render ¶ added in v0.1.1
func (rd *RenderData) Render(t *template.Template, isDry bool) error
Template html with data d.
func (*RenderData) RenderTags ¶ added in v0.1.1
func (rd *RenderData) RenderTags(t *template.Template, isDry bool) error
Template tags page
Click to show internal directories.
Click to hide internal directories.