Skip to content

samlotti/blip-example

Repository files navigation

blip-example

Example go project to show blip template usage

install

Clone this repository

  git clone https://github.com/samlotti/blip-example.git
  
  cd blip-example

Install blip if you have not already done that: [Blip] (https://github.com/samlotti/blip)

Generate the template Go file:

    ./buildTemplates.sh
    
    or 
    
    blip -dir="./html" --rebuild --watch

Note that --watch will monitor for file changes and rebuild as needed.

Generated files will be in the folder

  ./blipped

in another window start the application using

    air
    
    or 
    
    go run blipServer.go

Note air will restart the application if the templates have changed.

open: http://localhost:8181

Enjoy

Bonus points, open the project in your editor and change some files.

About

Example go project to show blip template usage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages