From 9dd9e69fd0a1d8ebe345187ad148bc38fe96a7fe Mon Sep 17 00:00:00 2001 From: Avi Goldman Date: Wed, 25 Oct 2017 20:56:12 -0700 Subject: [PATCH] updated readme --- .gitignore | 1 + README.md | 63 ++++++++++++++++-------------------------------------- 2 files changed, 19 insertions(+), 45 deletions(-) diff --git a/.gitignore b/.gitignore index 0f6acf7..26d71ec 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules build/ .env *.log +testing/ diff --git a/README.md b/README.md index 3d39668..09e06c8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ # HEML +

+ Guide • + Documentation • + Editor +

+ + HEML is an open source markup language for building responsive email. - **Native Feel:** Do you know HTML and CSS? Check out our docs and you're off to the races! No special rules or styling paradigms to master. @@ -9,58 +16,24 @@ HEML is an open source markup language for building responsive email. - **Extendable:** You can create your own powerful elements and style rules. Share them with the world, or keep em to yourself. Your choice. -##### [Try it out!](https://heml.io/editor) - - -## Table of Contents -* [Getting Started](https://heml.io/docs/getting-started) -* [Email Structure](https://heml.io/docs/email-structure) -* [Styling](https://heml.io/docs/styling) -* [Elements](https://heml.io/docs/elements) - +## FAQ -## Code with HEML +### Why should I use HEML? -To use HEML in your node project, install it with: +It makes building emails easier. -```sh -npm install heml --save -``` +### How do I use it? -In your code, pull the package in. It takes two parameters: the HEML you want to convert and any custom options you have defined. Once finished, HEML will return a Promise with an object containing the generated HTML and any metadata collected. If `validate` is set to `soft`, an array of any errors will also be included. +Check out our [usage guide](http://heml.io/docs/getting-started/usage). -```js -const HEML = require('heml') +### What do I if I found a bug? -HEML(` - - - My email - - -

Hi there!

- -
-`, { - validate: 'soft' -}) -.then(({ metadata, html, errors }) => { - console.log(html) -}) +Open up an [issue](https://github.com/SparkPost/heml/issues) on the repository. Thanks for catching it! 🙏 -``` +### Want to help? +Awesome!! We welcome any and all help! Head over to the [issues](https://github.com/SparkPost/heml/issues) and see if anything catches your eye. -### Options +## License -```js -{ - validate: 'strict'|'soft'|'none', // defaults to 'soft' - cheerio: {} // config passed to cheerio parser - juice: {}, - beautify: {} // config passed to js-beautify html method - elements: [ - // any custom elements you want to use - ] -} -``` +[MIT](https://github.com/SparkPost/heml/blob/master/LICENSE)