移植了 asp.net 的 razor 模板引擎到 GO

2014-05-01 21:55:49 +08:00
 Wuvist
https://github.com/Wuvist/gorazor

基于代码生成,用了一个现成的js razor模板parser,所以还需要node。
1886 次点击
所在节点    Go 编程语言
6 条回复
rebornix
2014-05-01 22:04:34 +08:00
Awesome!!! It's a real contribution towards both Asp.NET and Go.

BTW, "View engine" is more accurate.
Wuvist
2014-05-01 22:15:59 +08:00
@rebornix ^_^ then both asp.net & go fans should thanks node.js. gorazor is currently a "hack" to node.js project vash: https://github.com/kirbysayshi/vash
min
2014-05-02 10:19:35 +08:00
杂交啊
Wuvist
2014-05-04 13:26:45 +08:00
@min 如果有空的话,把node的依赖干掉会方便很多。

===

增加了layout/section支持,同时写多篇又臭又长的“设计文档”: http://t.cn/8s1D2cn 求拍砖,求PR~
Wuvist
2014-05-13 22:35:40 +08:00
去除node的依赖,改为纯go实现了,项目也移去了公司的群组:
https://github.com/sipin/gorazor

直接go get可用。
guotie
2014-05-20 22:06:56 +08:00
强大!

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/110802

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX