lefthandedgoat / genit

A cross-platform website generator and server using F#, Suave and PostgreSQL.
MIT License
66 stars 10 forks source link

Add option to generate Liquid templates instead of Suave HTML helpers #36

Open Krzysztof-Cieslak opened 8 years ago

Krzysztof-Cieslak commented 8 years ago

For many workflows (UI designers not being F# devs at all etc.) it makes more sense to have Liquid templates.

lefthandedgoat commented 8 years ago

I thought about this a bit last night and even looked at Liquid. If Liquid templates can reference other templates than it should not be that hard to do. Can you 'compose' Liquid templates?

Krzysztof-Cieslak commented 8 years ago

Yeah - there are two types of "composing":

  1. Including another template - https://github.com/fssnippets/fssnip-website/blob/master/templates/tag.html#L11
  2. Extending another template - https://github.com/fssnippets/fssnip-website/blob/master/templates/tag.html#L1