vision

package module
v0.0.0-...-ed39aa1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2017 License: MIT Imports: 4 Imported by: 3

README

vision

A template parser for web design to be easily updated without need to know more than basic HTML.

Steps to setup

Make sure the GOPATH is setup

echo $GOPATH

If it is not, refer to this documentation: https://golang.org/doc/code.html

Now we will need to put our package in it's place for reference.

mkdir -p $GOPATH/src/github.com/protosam
cd $_
git clone https://github.com/protosam/vision.git

Test it out:

cd vision/example
go run example.go

You can use the example.go code to begin your boiler place. Vision is extremely simple. The entire point is to completely separate your HTML from the code so that templates can be easily made by non-programmers.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type New

type New struct {
	Assignments  map[string]string
	GAssignments map[string]string
	// contains filtered or unexported fields
}

func (*New) Assign

func (tpl *New) Assign(name string, value string)

func (*New) GAssign

func (tpl *New) GAssign(name string, value string)

func (*New) Out

func (tpl *New) Out() string

func (*New) Parse

func (tpl *New) Parse(block_name string)

func (*New) TemplateFile

func (tpl *New) TemplateFile(tpl_file string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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