pablomartinezalvarez / glayu

A static site generator for mid-sized sites.
MIT License
79 stars 4 forks source link

Filter files by ".eex" extension when scanning template directory #11

Closed gnucifer closed 7 years ago

gnucifer commented 7 years ago

Hi! I have had an issue for a while getting " invalid encoding starting at <<189, 124, 89...etc" errors when running glayu build, also without any stack trace which made debugging quite difficult. The error was very erratic and eventually found it it disappeared when I closed my editor. Realized that the error was because of vim's swap files (".home.eex.swp" for example) for files I'm working on in the template directories. :) This patch should fix this issue. I have not built and included a new binary with this patch, as I'm not really sure how you like to do this.

pmartinezalvarez commented 7 years ago

Hi :) Thanks so much!

About the binary, I use to generate a escript with the latest version on the master. When I`ll close the 0.2.0 I will create a page for all the releases.