Documentation ¶
Index ¶
- func ExecuteIndexHTMLTemplate(w io.Writer, serverName string, website *webhostingv1alpha1.Website, ...) error
- func RenderIndexHTML(serverName string, website *webhostingv1alpha1.Website, ...) (string, error)
- func RenderNginxConf(serverName string, website *webhostingv1alpha1.Website) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteIndexHTMLTemplate ¶
func ExecuteIndexHTMLTemplate(w io.Writer, serverName string, website *webhostingv1alpha1.Website, theme *webhostingv1alpha1.Theme) error
ExecuteIndexHTMLTemplate renders the index template and writes it to the given io.Writer.
func RenderIndexHTML ¶
func RenderIndexHTML(serverName string, website *webhostingv1alpha1.Website, theme *webhostingv1alpha1.Theme) (string, error)
RenderIndexHTML renders the index template and returns it as a string.
func RenderNginxConf ¶
func RenderNginxConf(serverName string, website *webhostingv1alpha1.Website) (string, error)
RenderNginxConf renders the nginx config template and returns it as a string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.