From ddf3b2a8d03cb91be34758622a8f59d253fe3d39 Mon Sep 17 00:00:00 2001 From: Tzu-Jung Lee Date: Tue, 24 Nov 2015 14:46:59 -0800 Subject: [PATCH] modify import path to currantlabs --- .travis.yml | 2 +- README.md | 14 +++++++------- docs/hello/src/tpl/index.go | 2 +- docs/tutorial.md | 2 +- examples/gen/helper/msg.go | 2 +- examples/gen/home.go | 2 +- gorazor.go | 2 +- gorazor/gogen.go | 2 +- gorazor/test/add.go | 2 +- gorazor/test/argsbug.go | 2 +- gorazor/test/badtag.go | 2 +- gorazor/test/base.go | 2 +- gorazor/test/bug8.go | 2 +- gorazor/test/bug9.go | 2 +- gorazor/test/edit.go | 2 +- gorazor/test/email.go | 2 +- gorazor/test/end.go | 2 +- gorazor/test/home.go | 2 +- gorazor/test/index.go | 2 +- gorazor/test/inline_var.go | 2 +- gorazor/test/keyword.go | 2 +- gorazor/test/layout.go | 2 +- gorazor/test/layout/base.go | 2 +- gorazor/test/login.go | 2 +- gorazor/test/msg.go | 2 +- gorazor/test/scope.go | 2 +- gorazor/test/sectionbug.go | 2 +- 27 files changed, 33 insertions(+), 33 deletions(-) diff --git a/.travis.yml b/.travis.yml index dc2ec95..2a7135f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ go: - release install: - - go get github.com/sipin/gorazor + - go get github.com/currantlabs/gorazor script: - go test -v ./gorazor/ diff --git a/README.md b/README.md index 24321ed..f89d3f0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # GoRazor -[![Build Status](https://travis-ci.org/sipin/gorazor.svg?branch=master)](https://travis-ci.org/sipin/gorazor) +[![Build Status](https://travis-ci.org/currantlabs/gorazor.svg?branch=master)](https://travis-ci.org/sipin/gorazor) GoRazor is the Go port of the razor view engine originated from [asp.net in 2011](http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx). In summary, GoRazor's: @@ -22,7 +22,7 @@ Install: ```sh go get gopkg.in/fsnotify.v1 -go get github.com/sipin/gorazor +go get github.com/currantlabs/gorazor ``` Usage: @@ -91,7 +91,7 @@ Only use `raw` when you are 100% sure what you are doing, please always be aware } ``` -Please use [example](https://github.com/sipin/gorazor/blob/master/examples/tpl/home.gohtml) for reference. +Please use [example](https://github.com/currantlabs/gorazor/blob/master/examples/tpl/home.gohtml) for reference. ## Code block @@ -161,7 +161,7 @@ So, using a helper template is similar to: GoRazor won't HTML escape the output of `helper.XXX`. -Please use [example](https://github.com/sipin/gorazor/blob/master/examples/tpl/home.gohtml) for reference. +Please use [example](https://github.com/currantlabs/gorazor/blob/master/examples/tpl/home.gohtml) for reference. ## Layout & Section @@ -270,7 +270,7 @@ Thus, it's possible for the layout to define default section content in such man # Example -Here is a simple example of [gorazor templates](https://github.com/sipin/gorazor/tree/master/examples/tpl) and the corresponding [generated codes](https://github.com/sipin/gorazor/tree/master/examples/gen). +Here is a simple example of [gorazor templates](https://github.com/currantlabs/gorazor/tree/master/examples/tpl) and the corresponding [generated codes](https://github.com/sipin/gorazor/tree/master/examples/gen). # FAQ @@ -282,7 +282,7 @@ Here is a simple example of [gorazor templates](https://github.com/sipin/gorazor ![syntax highlight](https://lh4.googleusercontent.com/-_mhaTNt04aU/U7kaSbSXCMI/AAAAAAAAH48/06DintuZPVE/w875-h770-p/Screen+Shot+2014-07-06+at+2.17.49+PM.png) -**Context aware auto-completion**, you may need to [manually modify](https://github.com/sipin/GoSublime/commit/fd0b979e7cc1d8f2438bb314399c2456d16f3ffb) GoSublime package, bascially replace `gscomplete.py` in with [this](https://raw.githubusercontent.com/sipin/GoSublime/gorazor/gscomplete.py) and `gslint.py` with [this](https://raw.githubusercontent.com/sipin/GoSublime/gorazor/gslint.py) +**Context aware auto-completion**, you may need to [manually modify](https://github.com/currantlabs/GoSublime/commit/fd0b979e7cc1d8f2438bb314399c2456d16f3ffb) GoSublime package, bascially replace `gscomplete.py` in with [this](https://raw.githubusercontent.com/sipin/GoSublime/gorazor/gscomplete.py) and `gslint.py` with [this](https://raw.githubusercontent.com/sipin/GoSublime/gorazor/gslint.py) ![auto complete](https://lh5.googleusercontent.com/-A95EdOJGVv8/U7kaSdMkP-I/AAAAAAAAH5A/5ZI4z7X2l_Y/w958-h664-no/Screen+Shot+2014-07-05+at+10.38.22+PM.png) @@ -300,7 +300,7 @@ Here is a simple example of [gorazor templates](https://github.com/sipin/gorazor # Credits -The very [first version](https://github.com/sipin/gorazor/releases/tag/vash) of GoRazor is essentially a hack of razor's port in javascript: [vash](https://github.com/kirbysayshi/vash), thus requires node's to run. +The very [first version](https://github.com/currantlabs/gorazor/releases/tag/vash) of GoRazor is essentially a hack of razor's port in javascript: [vash](https://github.com/kirbysayshi/vash), thus requires node's to run. GoRazor has been though several rounds of refactoring and it has completely rewritten in pure Go. Nonetheless, THANK YOU [@kirbysayshi](https://github.com/kirbysayshi) for Vash! Without Vash, GoRazor may never start. diff --git a/docs/hello/src/tpl/index.go b/docs/hello/src/tpl/index.go index 9a26164..0c72487 100644 --- a/docs/hello/src/tpl/index.go +++ b/docs/hello/src/tpl/index.go @@ -2,7 +2,7 @@ package tpl import ( "bytes" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" "time" ) diff --git a/docs/tutorial.md b/docs/tutorial.md index 66cfe7e..9841dde 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -115,7 +115,7 @@ In `gohtml` you may insert `Go` code snippet, like this: ``` For more details syntax please refer to [Web programming using the Razor syntax](http://www.asp.net/web-pages/tutorials/basics/2-introduction-to-asp-net-web-programming-using-the-razor-syntax). -And you may also add `javascript` code in `gohtml`, where ctx is `var ctx *web.Context`, details please refer to [sipin/web](http://github.com/sipin/web). +And you may also add `javascript` code in `gohtml`, where ctx is `var ctx *web.Context`, details please refer to [currantlabs/web](http://github.com/sipin/web). ```javascript diff --git a/examples/gen/helper/msg.go b/examples/gen/helper/msg.go index 296818e..0a2a30d 100644 --- a/examples/gen/helper/msg.go +++ b/examples/gen/helper/msg.go @@ -2,7 +2,7 @@ package helper import ( "bytes" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" . "kp/models" ) diff --git a/examples/gen/home.go b/examples/gen/home.go index 49609ed..e02db12 100644 --- a/examples/gen/home.go +++ b/examples/gen/home.go @@ -2,7 +2,7 @@ package tpl import ( "bytes" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" . "kp/models" "tpl/helper" "tpl/layout" diff --git a/gorazor.go b/gorazor.go index caf1e3f..866efce 100644 --- a/gorazor.go +++ b/gorazor.go @@ -7,7 +7,7 @@ import ( "fmt" "os" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" ) func Usage() { diff --git a/gorazor/gogen.go b/gorazor/gogen.go index be6349a..e3fb393 100644 --- a/gorazor/gogen.go +++ b/gorazor/gogen.go @@ -20,7 +20,7 @@ import ( "gopkg.in/fsnotify.v1" ) -var GorazorNamespace = `"github.com/sipin/gorazor/gorazor"` +var GorazorNamespace = `"github.com/currantlabs/gorazor/gorazor"` var cfg = printer.Config{Mode: printer.UseSpaces | printer.TabIndent, Tabwidth: 4} diff --git a/gorazor/test/add.go b/gorazor/test/add.go index 6a97571..8713713 100644 --- a/gorazor/test/add.go +++ b/gorazor/test/add.go @@ -3,7 +3,7 @@ package cases import ( "bytes" "cases/layout" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" ) func Add(content string, err string) string { diff --git a/gorazor/test/argsbug.go b/gorazor/test/argsbug.go index a044c09..6085e94 100644 --- a/gorazor/test/argsbug.go +++ b/gorazor/test/argsbug.go @@ -3,7 +3,7 @@ package cases import ( "bytes" "cases/layout" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" . "kp/models" "tpl/helper" ) diff --git a/gorazor/test/badtag.go b/gorazor/test/badtag.go index 30c7009..6a54305 100644 --- a/gorazor/test/badtag.go +++ b/gorazor/test/badtag.go @@ -2,7 +2,7 @@ package cases import ( "bytes" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" ) func Badtag(w *gorazor.Widget) string { diff --git a/gorazor/test/base.go b/gorazor/test/base.go index 7fa1b1c..a27c71b 100644 --- a/gorazor/test/base.go +++ b/gorazor/test/base.go @@ -2,7 +2,7 @@ package cases import ( "bytes" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" "tpl/admin/helper" ) diff --git a/gorazor/test/bug8.go b/gorazor/test/bug8.go index 9fb2c19..38fcfc8 100644 --- a/gorazor/test/bug8.go +++ b/gorazor/test/bug8.go @@ -2,7 +2,7 @@ package cases import ( "bytes" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" ) func Bug8(l *Locale) string { diff --git a/gorazor/test/bug9.go b/gorazor/test/bug9.go index 876eda8..1e0391a 100644 --- a/gorazor/test/bug9.go +++ b/gorazor/test/bug9.go @@ -2,7 +2,7 @@ package cases import ( "bytes" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" ) func Bug9(l *Locale) string { diff --git a/gorazor/test/edit.go b/gorazor/test/edit.go index 06af225..9738862 100644 --- a/gorazor/test/edit.go +++ b/gorazor/test/edit.go @@ -2,7 +2,7 @@ package cases import ( "bytes" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" "kp/models" "tpl/admin/layout" ) diff --git a/gorazor/test/email.go b/gorazor/test/email.go index e30caab..d5166ae 100644 --- a/gorazor/test/email.go +++ b/gorazor/test/email.go @@ -2,7 +2,7 @@ package cases import ( "bytes" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" ) func Email() string { diff --git a/gorazor/test/end.go b/gorazor/test/end.go index 8e3d21f..0b5a9ab 100644 --- a/gorazor/test/end.go +++ b/gorazor/test/end.go @@ -3,7 +3,7 @@ package cases import ( "bytes" "cases/layout" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" . "kp/models" "tpl/helper" ) diff --git a/gorazor/test/home.go b/gorazor/test/home.go index 23e166d..5e285c2 100644 --- a/gorazor/test/home.go +++ b/gorazor/test/home.go @@ -3,7 +3,7 @@ package cases import ( "bytes" "cases/layout" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" . "kp/models" "tpl/helper" ) diff --git a/gorazor/test/index.go b/gorazor/test/index.go index 0561db5..a2bfb0f 100644 --- a/gorazor/test/index.go +++ b/gorazor/test/index.go @@ -3,7 +3,7 @@ package cases import ( "bytes" "cases/layout" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" "kp/models" ) diff --git a/gorazor/test/inline_var.go b/gorazor/test/inline_var.go index db65297..7e11169 100644 --- a/gorazor/test/inline_var.go +++ b/gorazor/test/inline_var.go @@ -2,7 +2,7 @@ package cases import ( "bytes" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" "github.com/sunfmin/gorazortests/models" ) diff --git a/gorazor/test/keyword.go b/gorazor/test/keyword.go index db71915..2578486 100644 --- a/gorazor/test/keyword.go +++ b/gorazor/test/keyword.go @@ -2,7 +2,7 @@ package cases import ( "bytes" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" ) func Keyword() string { diff --git a/gorazor/test/layout.go b/gorazor/test/layout.go index de1bd70..d889370 100644 --- a/gorazor/test/layout.go +++ b/gorazor/test/layout.go @@ -2,7 +2,7 @@ package cases import ( "bytes" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" ) func Layout(body string, title string, side string) string { diff --git a/gorazor/test/layout/base.go b/gorazor/test/layout/base.go index df14899..313f613 100644 --- a/gorazor/test/layout/base.go +++ b/gorazor/test/layout/base.go @@ -2,7 +2,7 @@ package layout import ( "bytes" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" "tpl/admin/helper" ) diff --git a/gorazor/test/login.go b/gorazor/test/login.go index a0242c9..c348e50 100644 --- a/gorazor/test/login.go +++ b/gorazor/test/login.go @@ -2,7 +2,7 @@ package cases import ( "bytes" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" ) func Login(msg string) string { diff --git a/gorazor/test/msg.go b/gorazor/test/msg.go index f7f6e3c..73120bb 100644 --- a/gorazor/test/msg.go +++ b/gorazor/test/msg.go @@ -2,7 +2,7 @@ package cases import ( "bytes" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" . "kp/models" ) diff --git a/gorazor/test/scope.go b/gorazor/test/scope.go index c407ce5..de272e7 100644 --- a/gorazor/test/scope.go +++ b/gorazor/test/scope.go @@ -3,7 +3,7 @@ package cases import ( "bytes" "dm" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" "zfw/models" . "zfw/tplhelper" ) diff --git a/gorazor/test/sectionbug.go b/gorazor/test/sectionbug.go index 7d20f1c..1a2591e 100644 --- a/gorazor/test/sectionbug.go +++ b/gorazor/test/sectionbug.go @@ -2,7 +2,7 @@ package cases import ( "bytes" - "github.com/sipin/gorazor/gorazor" + "github.com/currantlabs/gorazor/gorazor" "kp/models" "tpl/admin/layout" )