plimble / ace Goto Github PK
View Code? Open in Web Editor NEWBlazing fast Go Web Framework
License: Apache License 2.0
Blazing fast Go Web Framework
License: Apache License 2.0
First of all, thanks for creating and sharing a nice software!
Could you add a LICENSE file?
Open source licensing - User Documentation might help for choosing a license.
Thanks!
Hi, this is very similar to echo labstack. Any history behind it?
I can't seem to find a way to do file uploading through Ace, from client to server.
File uploading is a pretty essential part of a lot of applications, so support would be very much appreciated.
Could this be added?
I have a problem regarding using nested router and static path. I have a simple
a.Static("/public", "./public")
a.GET("/signin", func(c *ace.C) {/*stuff here */})
a.GET("/one/another", func(c *ace.C){/*stuff here */})
I have a simple css declaring in the template file like this
<link rel="stylesheet" href="public/dist/main.css"/>
With the first route, it requests the path correctly which is public/dist/main.css
but in the second route, it requests one/public/dist/main.css
which is not available.
I don't know if its specifically a problem with 1.5.1 but i get this error
c:\gocode\src\github.com\plimble\ace\context.go:163: assignment count mismatch:
2 = 1
According to https://github.com/plimble/ace#html,
this could be used c.HTML("index.html")
but the function definition at https://github.com/plimble/ace/blob/master/context.go#L88 takes a name and a interface.
(basically, i am looking for a way to return a single static file on a specific path)
I am sorry that this isn't really a bug, but I can't quite figure out how to correctly use ace-contrib/pongo2 with ace.
It mentions in the README that this implements the Renderer interface, but there isn't really an example, so I can't seem to figure out how it's meant to be used correctly.
could you show an example of using a simple template with html/template with ace ?
test code
package main
import "github.com/plimble/ace"
func main() {
a := ace.New()
a.GET("/:name", func(c *ace.C) {
name := c.Param("name")
c.JSON(200, map[string]string{"hello": name})
})
a.Run(":8088")
}
go: finding github.com/plimble/ace latest
go: finding github.com/plimble/sessions latest
go: finding github.com/plimble/utils latest
go: finding github.com/oxtoacart/bpool latest
\gopath\pkg\mod\github.com\plimble\[email protected]\utils.go:31:17: not enough arguments in call to uuid.Must
have (uuid.UUID)
want (uuid.UUID, error)
The following doesn't seem to be possible:
a.Static("/", "public")
The reason I am mentioning this, is because a lot of other Go frameworks seem to use the root URL for static files.
This works fine however:
a.Static("/static", "public")
It's not a huge deal, but would be nice if this can be made possible without too much hassle.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.