Skip to content
Permalink
Browse files

Update README

  • Loading branch information...
Raggaer committed Feb 28, 2019
1 parent 005ee06 commit 08edd40c18d217cf6cba22f0f9d0e140489d506e
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.md
@@ -68,7 +68,9 @@ 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:
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
to be able to work on development mode:

```go
if gin.Mode() == gin.DebugMode {

0 comments on commit 08edd40

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