agonzalezro / polo

Static site generator written in Go and "compatible" with Jekyll & Pelican content
MIT License
47 stars 9 forks source link

Refactor + start using Glide #39

Closed agonzalezro closed 8 years ago

agonzalezro commented 8 years ago

This is a big refactor that tries to do a better usage of channel and subrotuines. In fact, the generation speed was improved a lot.

Also, I don't think that adding GB was a good decission. I am using glide now.

Finally, the structure of the templates has changed and I am using the {% block %} tag introduced in Go 1.6 (yeah, not backwards compatible, nobody really cares :)

PS: I will be working on this PR because there are still things to do, but your comments would be really appreciated.

ikennaokpala commented 8 years ago

@agonzalezro great piece of work thus far.. a quick glance and nothing immediately pressing.. but it is interesting what you might think of this..

if (*startDaemon).predicate? {

instead of

if *startDaemon {

would it not be plausible to access the main object here as opposed to the pointer.. don't know much, just my thought.

agonzalezro commented 8 years ago

Hi @ikennaokpala! Thanks again for your comment.

startDaemon is a kingpin boolean flag (https://github.com/agonzalezro/polo/pull/39/files#diff-3c0900cfd7267956d73086d9ee0faf91R20), I don't actually understand what you are proposing.

ikennaokpala commented 8 years ago

The idea i am proposeing is for it to be an object with a boolean predicate method.. and where it can be deconstructed back with the parenthesis around (*startDaemon).. allowing access to the predicate..

Well just a thought though!! I will rest my case here.. my ruby side has gotten the most of me at this point..

ikennaokpala commented 8 years ago

+1

On Mon, May 2, 2016 at 12:28 PM, Alexandre González < notifications@github.com> wrote:

Merged #39 https://github.com/agonzalezro/polo/pull/39.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/agonzalezro/polo/pull/39#event-647476752

Ikenna