Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type View ¶
type View struct { yarf.Resource // Public files root path Public string // Views root path Views string // View components root path Components string Debug bool sync.RWMutex // contains filtered or unexported fields }
View is a yarf.Resource object that renders templates based on the request path.
func New ¶
New takes 3 strings for public, views and components paths respectively. Returns a new *View object properly configured.
func (*View) Get ¶
Get implements yarf.Resource.Get() method to write a public file or a view to the response.
Click to show internal directories.
Click to hide internal directories.