Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toastal/mailto
Elm mailto links made easy
https://github.com/toastal/mailto
elm mailto
Last synced: about 2 months ago
JSON representation
Elm mailto links made easy
- Host: GitHub
- URL: https://github.com/toastal/mailto
- Owner: toastal
- License: apache-2.0
- Created: 2019-03-26T06:45:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-01-19T18:12:39.000Z (11 months ago)
- Last Synced: 2024-05-09T21:08:37.905Z (8 months ago)
- Topics: elm, mailto
- Language: Elm
- Homepage: https://package.elm-lang.org/packages/toastal/mailto/latest/
- Size: 28.3 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mailto
A piped DSL for creating `mailto:` links. See more at [rfc6068](https://datatracker.ietf.org/doc/html/rfc6068#section-4).
```elm
partnerMailto : Mailto
partnerMailto =
mailto "[email protected]"
|> subject "I want to cook you dinner"
|> cc [ "[email protected]", "[email protected]" ]
|> bcc [ "[email protected]" ]
|> body "I’ll be making a spicy, Isaan nam dtok muu salad (น้ำตกหมู)."view : Html msg
view =
a
[ toHref partnerMailto ]
[ text "🐷🌶️🥬🍚" ]
```Which will output
```html
"🐷🌶️🥬🍚
```---
## Project & Community Notes
This project is regrettably available on [GitHub](https://github.com/toastal/mailto). The Elm community has tied itself to the closed-source, Microsoft-owned code forge of GitHub for package registry and identity. This does not protect the privacy or freedom of its community members.
---
## License
This project is licensed under Apache License 2.0 - [LICENSE](./LICENSE) file for details.
## Funding
If you want to make a small contribution to the maintanence of this & other projects
- [Liberapay](https://liberapay.com/toastal/)
- [Bitcoin: `39nLVxrXPnD772dEqWFwfZZbfTv5BvV89y`](bitcoin://39nLVxrXPnD772dEqWFwfZZbfTv5BvV89y?message=Funding%20toastal%E2%80%99s%20Elm%20mailto%20development
) (verified on [Keybase](https://keybase.io/toastal/sigchain#690220ca450a3e73ff800c3e059de111d9c1cd2fcdaf3d17578ad312093fff2c0f))
- [Zcash: `t1a9pD1D2SDTTd7dbc15KnKsyYXtGcjHuZZ`](zcash://t1a9pD1D2SDTTd7dbc15KnKsyYXtGcjHuZZ?message=Funding%20toastal%E2%80%99s%20Elm%20mailto%20development) (verified on [Keybase](https://keybase.io/toastal/sigchain#65c0114a3c8ffb46e39e4d8b5ee0c06c9eb97a02c4f6c42a2b157ca83b8c47c70f))