Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukewestby/elm-template
Type-safe Elm string templating with records.
https://github.com/lukewestby/elm-template
Last synced: 15 days ago
JSON representation
Type-safe Elm string templating with records.
- Host: GitHub
- URL: https://github.com/lukewestby/elm-template
- Owner: lukewestby
- License: mit
- Created: 2015-12-23T23:00:32.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-08-21T18:25:08.000Z (about 6 years ago)
- Last Synced: 2024-05-08T23:20:54.256Z (6 months ago)
- Language: Elm
- Size: 9.77 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# elm-template
Type-safe Elm string templating with records.
## Examples
```elm
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](https://github.com/rtfeldman) for guidance on the
API!