sairam / kinli

Golang library for making websites using simple skeleton structure (uses Gorilla mux/sessions)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoDoc

Go Versions

Tested on Go versions > 1.6

Installation

go get github.com/sairam/kinli

or

dep ensure -add github.com/sairam/kinli

Using kinli

  • kinli.PathTemplate
  • kinli.PathPartialTemplate
  • kinli.CacheMode - true or false based on production / dev
  • kinli.ViewFuncs - additional list of ViewFuncs you'd like to access from views
  • kinli.InitTmpl() - to start your template rendering
  • kinli.SessionStore - this is a mandatory field to be initialized

Sending Emails

var smtpConfig = &kinli.EmailSMTPConfig{config.SMTPHost, config.SMTPPort, config.SMTPUser, config.SMTPPass}
kinli.InitMailer(smtpConfig)

e := &kinli.EmailCtx{} // fill up the fields from,to, subject, TextBody, HTMLBody, optional headers
e.SendEmail()

Example

See example1/ for a quick webpage

What is kinli?

kinli is a code wrapper extracted for creating simple web pages quicker

  • Helper functions come in as requirements come. All helper functions are taken from hugo project
  • repeating methods on top of sessions using the gorilla/sessions

This code is extracted from GitNotify

LICENSE

MIT

About

Golang library for making websites using simple skeleton structure (uses Gorilla mux/sessions)

License:MIT License


Languages

Language:Go 92.3%Language:HTML 7.7%