Skip to content
Permalink
Browse files

Update README

  • Loading branch information...
Raggaer committed May 29, 2019
1 parent 2abb13d commit f8de3dffa1e14230a9ff1a1bfd52cfcdffb3b463
Showing with 4 additions and 2 deletions.
  1. +4 −2 README.md
@@ -3,6 +3,8 @@
Static file serving for [Gin](https://github.com/gin-gonic/gin). Compress assets such as `.js`, `.css` using `gzip`.
All static assets are also served with proper cache control headers.

Its basically a simple Go extension for those who dont want to use a bundler.

## Usage

Download and install:
@@ -66,8 +68,8 @@ You can later access the files using the variable `AssetMap` (contains all loade
You can also access the static files on your `.html` templates, first you need to declare the provided `Asset` function
on your gin router func map.

While running on development mode assets you should add a static handler route, so you dont need to recompile the static folder.
The `{{ asset }}` function will check if gin is on debug mode, and return a path using `/public` so you should declare the following router
While running on development mode, you should add a static handler route, so you dont need to recompile the static folder.
The `{{ asset }}` function will check if gin is on debug mode, and return a path using the path you provided so you should declare the following router
to be able to work on development mode:

```go

0 comments on commit f8de3df

Please sign in to comment.
You can’t perform that action at this time.