generator-reveal
Advanced tools
Comparing version 0.0.10 to 0.0.11
{ | ||
"name": "generator-reveal", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "A Reveal.js generator for Yeoman", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -114,3 +114,28 @@ # Generator-reveal | ||
##### Speaker Notes | ||
Invoked with `--notes` | ||
```bash | ||
yo reveal:slide "Slide Title" --notes | ||
``` | ||
Produces `slides/slide-title.html`: | ||
```html | ||
<section> | ||
<h2>Slide Title</h2> | ||
<p>This is a new slide</p> | ||
<aside class="notes"> | ||
Put your speaker notes here. | ||
You can see them pressing 's'. | ||
</aside> | ||
</section> | ||
``` | ||
For markdown, just add `--markdown`. | ||
## License | ||
[MIT License](http://en.wikipedia.org/wiki/MIT_License) |
@@ -32,5 +32,13 @@ 'use strict'; | ||
if (this.useMarkdown) { | ||
this.template('slide.md', fullfilename); | ||
if (this.options.notes) { | ||
this.template('slide-withnotes.md', fullfilename); | ||
} else { | ||
this.template('slide.md', fullfilename); | ||
} | ||
} else { | ||
this.template('slide.html', fullfilename); | ||
if (this.options.notes) { | ||
this.template('slide-withnotes.html', fullfilename); | ||
} else { | ||
this.template('slide.html', fullfilename); | ||
} | ||
} | ||
@@ -37,0 +45,0 @@ var fullPath = path.join(appPath, '/slides/list.json'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20001
30
293
141