All Projects → lukewestby → elm-template

lukewestby / elm-template

Licence: MIT License
Type-safe Elm string templating with records.

Programming Languages

elm
856 projects

elm-template

Type-safe Elm string templating with records.

Examples

import Template exposing (template, render, withValue, withString)

myTemplate =
  template "My name is "
    |> withValue .name
    |> withString ", nice to meet you!"

render { name = "Luke" } myTemplate

Contributing

I'm happy to receive any feedback and thinking about additional features. Any input and pull requests are very welcome and encouraged. If you'd like to help or have ideas, get in touch with me at @luke in the elmlang Slack!


Thanks to Richard Feldman for guidance on the API!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].