renderTemplate

Summary

The template method for specifying how the generated HTML should be rendered.

Usage

public abstract void renderTemplate(string html)

Parameters

html

The generated HTML. The generated HTML will be passed into this template method.

Description

Override this template method to specify how the generated HTML should be rendered.

Examples

Basic Usage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import Altitude.Frontend;
 
external jQuery, $;
 
class Menu : View
{
    Menu() {
        super(Templates.Menu.template);
    }
 
    override void renderTemplate(string html) {
        $("#left-sidebar-container").html(html);
    }
}

Share

HTML | BBCode | Direct Link