From dd1660f6f09058aacdf09e9f60b71702e2b07d36 Mon Sep 17 00:00:00 2001 From: Kai H Date: Sat, 25 Apr 2015 17:27:24 +0200 Subject: [PATCH 1/2] Updated README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 86d8d0fa..af66a944 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Please note that Journey is still in alpha and has not been tested in production Create or update your posts from any place and any device. Simply point your browser to yourblog.url/admin/, log in, and start typing away! #### Extensible -Write plugins in Lua to implement custom behavior when generating pages. Learn how to on the [Wiki](https://github.com/kabukky/journey/wiki/Creating-a-Journey-Plugin)! +Write plugins in Lua to implement custom behavior when generating pages. Learn how to do it on the [Wiki](https://github.com/kabukky/journey/wiki/Creating-a-Journey-Plugin)! #### Good stuff available right away Use Ghost themes to design your blog. There's already a great community of designers working on Ghost compatible themes. Check out the [Ghost Marketplace](http://marketplace.ghost.org) to get an idea. From 2585cce07ed1e595e62deeff98507e797796ca8c Mon Sep 17 00:00:00 2001 From: Kai H Date: Sat, 25 Apr 2015 18:27:59 +0200 Subject: [PATCH 2/2] Fixed: Bug when parsing arguments. --- templates/generation.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/generation.go b/templates/generation.go index f5f088e8..32cb4629 100644 --- a/templates/generation.go +++ b/templates/generation.go @@ -50,7 +50,8 @@ func createHelper(helperName []byte, unescaped bool, startPos int, block []byte, //remove "" around tag if present quoteTagResult := quoteTagChecker.FindSubmatch(tag) if len(quoteTagResult) != 0 { - tag = quoteTagResult[1] + // Get the string inside the quotes (3rd element in array) + tag = quoteTagResult[2] } //TODO: This may have to change if the first argument is surrounded by quotes if index == 0 { @@ -65,7 +66,7 @@ func createHelper(helperName []byte, unescaped bool, startPos int, block []byte, // Check for quotes in the =argument (has beem omitted from the check above) quoteTagResult := quoteTagChecker.FindSubmatch(arg) if len(quoteTagResult) != 0 { - // Join poth parts, this time without the youtes + // Join poth parts, this time without the quotes arg = bytes.Join([][]byte{quoteTagResult[1], quoteTagResult[2]}, []byte("")) } helper.Arguments = append(helper.Arguments, *makeHelper(string(arg), unescaped, 0, []byte{}, nil))