You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have /static path with web content I'd like to serve and /templates for server consumption. Tried the following but got compile error on generated code (variable redefined or something like that):
var fs1 http.FileSystem = http.Dir("static")
vfsgen.Generate(fs1, vfsgen.Options{})
var fs2 http.FileSystem = http.Dir("templates")
vfsgen.Generate(fs2, vfsgen.Options{})
This is an enhancement request to support multiple virtual file system's in same app.
Note: because templates are for internal server consumption, I'm not asking to support multiple static paths in the same VFS (although that would be nice as well but not what I need right now).
The text was updated successfully, but these errors were encountered:
Have /static path with web content I'd like to serve and /templates for server consumption. Tried the following but got compile error on generated code (variable redefined or something like that):
var fs1 http.FileSystem = http.Dir("static")
vfsgen.Generate(fs1, vfsgen.Options{})
var fs2 http.FileSystem = http.Dir("templates")
vfsgen.Generate(fs2, vfsgen.Options{})
This is an enhancement request to support multiple virtual file system's in same app.
Note: because templates are for internal server consumption, I'm not asking to support multiple static paths in the same VFS (although that would be nice as well but not what I need right now).
The text was updated successfully, but these errors were encountered: