pretzel icon indicating copy to clipboard operation
pretzel copied to clipboard

Incompatibility with GitHub pages - case sensitive variables

Open DavidBurela opened this issue 10 years ago • 4 comments

Pretzel is not case sensitive when it comes to variables. However GitHub pages is. This means that sites that work locally do not work when pushed to GitHub.

https://twitter.com/DavidBurela/status/653163439221686272

DavidBurela avatar Dec 03 '15 08:12 DavidBurela

Thanks for reporting :smiley: By variables you mean liquid variables? If yes it depends on DotLiquid which seems quite abandoned. If no can you provide a sample for reproducing the issue?

laedit avatar Dec 03 '15 08:12 laedit

I'm assuming it is liquid variables. Using them within a post i.e. http://jekyllrb.com/docs/variables/

On 3 December 2015 at 16:30, Jérémie Bertrand [email protected] wrote:

Thanks for reporting [image: :smiley:] By variables you mean liquid variables? If yes it depends on DotLiquid which seems quite abandoned. If no can you provide a sample for reproducing the issue?

— Reply to this email directly or view it on GitHub https://github.com/Code52/pretzel/issues/281#issuecomment-161549793.

DavidBurela avatar Dec 03 '15 08:12 DavidBurela

It is liquid variables, we can do nothing about that, sorry.

laedit avatar Dec 03 '15 09:12 laedit

After some time of thinking, a custom ISiteEngine inherited from LiquidEngine could do the trick: in the RenderTemplate method you could check the templateContents and see if there are the requested variable in the pageData.

laedit avatar Dec 28 '15 11:12 laedit