lestrrat-go / xslate

Powerful Template Engine for Go (port Perl5's Text::Xslate)
MIT License
65 stars 6 forks source link

go-xslate doesn't build (compiler error) #8

Closed jeremiah closed 10 years ago

jeremiah commented 10 years ago

Hi,

Looks like the compiler is complaining about multiple values in a single value context. My error message;

$ go build template-xslate.go

command-line-arguments

./template-xslate.go:9: multiple-value xslate.New() in single-value context

The file I'm compiling is just the snippet from the README file, I've added nothing.

lestrrat commented 10 years ago

You used the code on the README? Meh, it was probably old (I made some very big changes since the last time I updated that portion of the README). Let me double check and update it.

lestrrat commented 10 years ago

The fix I just made should do the trick. Please let me know if you find anything else. Just as a general note, I'm still actively working on this code base, so the documentation tends to lag behind the implementation. I'm hoping to see things stabilize once I finish implementing one of the last big directives, "MACRO"

jeremiah commented 10 years ago

Cool, thanks! I'll re-read the README. :-)

I'm happy to help with documentation as I can, I'll send pull requests and I don't mind using alpha software.

Cheers!

jeremiah commented 10 years ago

Another quick note. I fixed the original error by changing this line;

   xt:= xslate.New()

to this

   xt, err := xslate.New()