components

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty

This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty

This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty

This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	//factor.Router
	Todos []*models.Todo
	Page  string
}

func (*App) Render

func (p *App) Render() vecty.ComponentOrHTML

type Markdown

type Markdown struct {
	vecty.Core
	Input string `vecty:"prop"`
}

Markdown is a simple component which renders the Input markdown as sanitized HTML into a div.

func (*Markdown) Render

func (p *Markdown) Render() vecty.ComponentOrHTML
type Nav struct {
	vecty.Core
	MyProp      string `vecty:"Prop"`
	CurrentPath string
}
func (p *Nav) Render() vecty.ComponentOrHTML

type PageView

type PageView struct {
	vecty.Core
	Input string
}

PageView is our main page component.

type Todo

type Todo struct {
	vecty.Core
	Name        string
	Description string
	Permalink   string
}

func (*Todo) GetAge

func (t *Todo) GetAge() string

func (*Todo) Render

func (p *Todo) Render() vecty.ComponentOrHTML

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL