-
Notifications
You must be signed in to change notification settings - Fork 3
Home
LeuisKen edited this page Nov 21, 2015
·
2 revisions
#StarMVC Document
The constructor of StarMVC.
Add route in the route table.
Parameters
route: string
, the name of the route
templete: string
, the path of the view templete
controller: function
, the container of the data that will render in the templete.
Initialize the StarMVC application.
Parameters
viewElement: string
, the DOM object that you templete will render in
Start the StarMVC App.
Load the templete that will be renderd, use ajax.
Parameters
route: object
, the route object that contains the required information.
The core of the templete engine.
Parameters
rawTemp: string
, the templete.
controller: function
, the container of the data that will render in the templete.
Render the DOM tree in the view.