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 年 5 月 1 日 · 2628 次点击
    这是一个创建于 4294 天前的主题,其中的信息可能已经有所发展或是发生改变。
    https://github.com/Wuvist/gorazor

    基于代码生成,用了一个现成的js razor模板parser,所以还需要node。
    6 条回复    2014-05-20 22:06:56 +08:00
    rebornix
        1
    rebornix  
       2014 年 5 月 1 日
    Awesome!!! It's a real contribution towards both Asp.NET and Go.

    BTW, "View engine" is more accurate.
    Wuvist
        2
    Wuvist  
    OP
       2014 年 5 月 1 日   ❤️ 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 年 5 月 2 日
    杂交啊
    Wuvist
        4
    Wuvist  
    OP
       2014 年 5 月 4 日
    @min 如果有空的话,把node的依赖干掉会方便很多。

    ===

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

    直接go get可用。
    guotie
        6
    guotie  
       2014 年 5 月 20 日
    强大!
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   4815 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 09:00 · PVG 17:00 · LAX 01:00 · JFK 04:00
    ♥ Do have faith in what you're doing.