Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples #26

Merged
merged 3 commits into from Sep 28, 2016
Merged

Add examples #26

merged 3 commits into from Sep 28, 2016

Conversation

remarkablemark
Copy link
Owner

Chore:

  • Create examples directory
  • Create ./examples/script-tag.html that demonstrates loading the parser with a script tag
  • Create ./examples/requirejs.html that demonstrates loading the parser with Require.js
  • Add examples to .npmignore

- Create directory `./examples/`
- Create HTML file in `./examples/` with a working example of
  loading the parser with a script tag
Create an HTML file in `./examples/ that loads the parser and
React with Require.js
@remarkablemark remarkablemark added the documentation Improvements or additions to documentation label Sep 27, 2016
@remarkablemark remarkablemark self-assigned this Sep 27, 2016
@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.949% when pulling e48a9f0 on examples into 43f46ce on master.

@remarkablemark remarkablemark merged commit cfffc97 into master Sep 28, 2016
@remarkablemark remarkablemark deleted the examples branch September 28, 2016 03:27
remarkablemark added a commit that referenced this pull request Sep 28, 2016
- Update build (#25):
  - Change filenames in `dist/` to `html-react-parser`
- Create examples (#26):
  - Examples found in the directory `examples/`
  - Add `script-tag.html`, which is an example of loading the
    parser via the CDN
  - Add `requirejs.html`, which is an example of loading the
    parser via Require.js
- Update `README.md` (#27):
  - Reword and tidy description and instructions
  - Update installation with CDN link
  - Refactor and tidy examples using ES6 and JSX
- Update `.npmignore`:
  - Add `webpack.config.js`
  - Add `examples`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants