Dalgona/Serum

Serum.Post, Serum.Page Improvements

Closed this issue · 0 comments

Common

  • Use source(Serum.File struct) instead of src, data, etc...

    For richer error details and blaming.

  • Treat all markdowns/ HTMLs as EEx templates? (#115, #116)

    It would be better if we could take benefits from Serum template helpers in markdowns. And I thought that applying different procedure for processing plain HTMLs and EEx templates is meaningless.

    EDIT: Dropped EEx support for markdown, due to some quirks that I couldn't expect.

  • Support other source formats for blog posts (#119)

Posts

  • Replace date with DateTime struct, and remove raw_date

    Since Serum v1.0.0, users have access to Timex within their templates. Therefore the string formatting of datetimes can be performed in templates. No need to keep date_format in serum.exs.