V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
Wuvist
V2EX  ›  Go 编程语言

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

  •  2
     
  •   Wuvist ·
    Wuvist · 2014-05-01 21:55:49 +08:00 · 1860 次点击
    这是一个创建于 3619 天前的主题,其中的信息可能已经有所发展或是发生改变。
    https://github.com/Wuvist/gorazor

    基于代码生成,用了一个现成的js razor模板parser,所以还需要node。
    6 条回复    2014-05-20 22:06:56 +08:00
    rebornix
        1
    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
        2
    Wuvist  
    OP
       2014-05-01 22:15:59 +08:00   ❤️ 1
    @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
        3
    min  
       2014-05-02 10:19:35 +08:00
    杂交啊
    Wuvist
        4
    Wuvist  
    OP
       2014-05-04 13:26:45 +08:00
    @min 如果有空的话,把node的依赖干掉会方便很多。

    ===

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

    直接go get可用。
    guotie
        6
    guotie  
       2014-05-20 22:06:56 +08:00
    强大!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5369 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:57 · PVG 15:57 · LAX 00:57 · JFK 03:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.