Skip to content
This repository has been archived by the owner on May 15, 2018. It is now read-only.
/ renderer Public archive

Wrapper for unrolled/render that implements labstack/echo's renderer interface

License

Notifications You must be signed in to change notification settings

syntaqx/renderer

Repository files navigation

Renderer

Build Status Coverage Status GoDoc license

Renderer provides a wrapper for unrolled/render's Render instance that implements the labstack/echo Renderer interface for template rendering.

Install

With a properly configured Go toolchain:

go get -u github.com/syntaqx/renderer

Example

The minimum amount needed to set render as your apps template renderer is the following:

package main

import (
    "github.com/labstack/echo"
    "github.com/syntaqx/renderer"
    "github.com/unrolled/render"
)

func main() {
    e := echo.New()
    r := render.New()

    e.Renderer = renderer.Wrap(r)

    // ... the rest of your application

    e.Logger.Fatal(e.Start(":8080"))
}

However, that's not a particularly useful example, given there's no routes or templates to reference. For a bit more elaborate example, check out our example.

Contributing

Please feel free to submit issues and send pull requests!

License

Renderer is licensed under the MIT license. See LICENSE file for details.

About

Wrapper for unrolled/render that implements labstack/echo's renderer interface

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages