The Dummy Text Generator Web Component
1
stars
16
commits
HTML
primary language
Nov 23, 2016
updated
The Dummy Text Generator Web Component
paper-lipsum is a web component created using Polymer to let your display dummy blocks of text on your website using just one tag, instead of having to copy paste the whole block from a website.
It's as easy as 1-2-3.
<paper-lipsum></paper-lipsum>
Make sure you have Node/NPM and Bower installed. Then, run this command:
bower install --save AmruthPillai/paper-lipsum
Import the webcomponents.js script to your webpage, if you haven't already:
<script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script>
Then, import the paper-lipsum component to your webpage:
<link rel="import" href="bower_components/paper-lipsum/paper-lipsum.html">
That's all you need to start using the <paper-lipsum> tag. Magical, isn't it?
All you need to do to get some dummy text is:
<paper-lipsum></paper-lipsum>
I'm not kidding... that's it! (I'm starting to sound like I'm overselling this component, aren't I?)
But of course, there are a few other ways to manipulate this text too... like displaying a certain number of words:
<paper-lipsum words="200"></paper-lipsum>
You can check this out in action on the GitHub demo page: https://amruthpillai.github.io/paper-lipsum/
git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featureFirst, make sure you have the Polymer CLI installed. Then run polymer serve to serve your application locally.
$ polymer serve
$ polymer build
This will create a build/ folder with bundled/ and unbundled/ sub-folders
containing a bundled (Vulcanized) and unbundled builds, both run through HTML,
CSS, and JS optimizers.
You can serve the built versions by giving polymer serve a folder to serve
from:
$ polymer serve build/bundled
$ polymer test
Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.
MIT License
Copyright (c) 2016 Amruth Pillai
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16 commits
HTML
100.0%
The Dummy Text Generator Web Component
1
stars
16
commits
HTML
primary language
Nov 23, 2016
updated
The Dummy Text Generator Web Component
paper-lipsum is a web component created using Polymer to let your display dummy blocks of text on your website using just one tag, instead of having to copy paste the whole block from a website.
It's as easy as 1-2-3.
<paper-lipsum></paper-lipsum>
Make sure you have Node/NPM and Bower installed. Then, run this command:
bower install --save AmruthPillai/paper-lipsum
Import the webcomponents.js script to your webpage, if you haven't already:
<script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script>
Then, import the paper-lipsum component to your webpage:
<link rel="import" href="bower_components/paper-lipsum/paper-lipsum.html">
That's all you need to start using the <paper-lipsum> tag. Magical, isn't it?
All you need to do to get some dummy text is:
<paper-lipsum></paper-lipsum>
I'm not kidding... that's it! (I'm starting to sound like I'm overselling this component, aren't I?)
But of course, there are a few other ways to manipulate this text too... like displaying a certain number of words:
<paper-lipsum words="200"></paper-lipsum>
You can check this out in action on the GitHub demo page: https://amruthpillai.github.io/paper-lipsum/
git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featureFirst, make sure you have the Polymer CLI installed. Then run polymer serve to serve your application locally.
$ polymer serve
$ polymer build
This will create a build/ folder with bundled/ and unbundled/ sub-folders
containing a bundled (Vulcanized) and unbundled builds, both run through HTML,
CSS, and JS optimizers.
You can serve the built versions by giving polymer serve a folder to serve
from:
$ polymer serve build/bundled
$ polymer test
Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.
MIT License
Copyright (c) 2016 Amruth Pillai
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16 commits
HTML
100.0%