Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大神 beego 定义了模板之后怎么定义js代码啊? #6

Open
JJJJJJJerk opened this issue May 9, 2017 · 1 comment
Open

大神 beego 定义了模板之后怎么定义js代码啊? #6

JJJJJJJerk opened this issue May 9, 2017 · 1 comment

Comments

@JJJJJJJerk
Copy link

在哪的代码看不到layout tempalte啊

@hzwy23
Copy link
Owner

hzwy23 commented May 9, 2017

目前,对于template这个包,这个项目中用的非常少,当时出于前后端分离,让前段代码适应不同语言的后台,如java,所以,对于前端部分,没有使用到go特有的模板包。如果在您的项目中需要使用模版,直接使用go的模板包,或者beego的模版包,在模版中引入js文件,和非模版中引入js文件,html中写法是一样的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants