Skip to content

Commit

Permalink
Merge pull request #11 from xushiwei/blog
Browse files Browse the repository at this point in the history
mv .yap => _yap.html
  • Loading branch information
xushiwei authored Jan 8, 2024
2 parents 1b292f3 + a59d31c commit 9d94ded
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions demo/classfile_blog/gop_autogen.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package main

import "github.com/goplus/yap"

type blog_yap struct {
type blog struct {
yap.App
}
//line demo/classfile_blog/blog_yap.gox:1
func (this *blog_yap) MainEntry() {
func (this *blog) MainEntry() {
//line demo/classfile_blog/blog_yap.gox:1:1
this.Get("/p/:id", func(ctx *yap.Context) {
//line demo/classfile_blog/blog_yap.gox:2:1
Expand All @@ -16,5 +16,5 @@ func (this *blog_yap) MainEntry() {
this.Run__1(":8080")
}
func main() {
yap.Gopt_App_Main(new(blog_yap))
yap.Gopt_App_Main(new(blog))
}
File renamed without changes.
6 changes: 3 additions & 3 deletions demo/classfile_hello/gop_autogen.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package main

import "github.com/goplus/yap"

type hello_yap struct {
type hello struct {
yap.App
}
//line demo/classfile_hello/hello_yap.gox:1
func (this *hello_yap) MainEntry() {
func (this *hello) MainEntry() {
//line demo/classfile_hello/hello_yap.gox:1:1
this.Get("/p/:id", func(ctx *yap.Context) {
//line demo/classfile_hello/hello_yap.gox:2:1
Expand All @@ -21,5 +21,5 @@ func (this *hello_yap) MainEntry() {
this.Run__1(":8080")
}
func main() {
yap.Gopt_App_Main(new(hello_yap))
yap.Gopt_App_Main(new(hello))
}
2 changes: 1 addition & 1 deletion yap.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (p *Engine) templ(path string) (t Template, err error) {
}
t, ok := p.tpls[path]
if !ok {
t, err = ParseFSFile(p.fs, path+".yap")
t, err = ParseFSFile(p.fs, path+"_yap.html")
if err != nil {
return
}
Expand Down

0 comments on commit 9d94ded

Please sign in to comment.