Last active
November 2, 2016 11:30
-
-
Save QuingKhaos/06ea4eda19e4853cfe30567fdecdb70b to your computer and use it in GitHub Desktop.
Section template for https://github.com/slara/generator-reveal which allows multiple slides in one markdown file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% if (!_.isString(slide) && !_.isArray(slide) && _.isObject(slide)) { %> | |
<section <%= _.map(slide.attr, function (val, attr) {return attr + '="' + val + '"'}).join(' ')%> <% if (_.isString(slide.filename)) { %>data-<% if (slide.filename.indexOf('.html') !== -1) { %>html<% } else { %>markdown<% }%>="slides/<%= slide.filename %>"<% } %> | |
<% } %><% if (_.isString(slide)) { %> | |
<section data-<% if (slide.indexOf('.html') !== -1) { %>html<% } else { %>markdown<% }%>="slides/<%= slide %>" | |
<% } %> | |
data-separator="^\n\n\n" | |
data-separator-vertical="^\n\n" | |
data-separator-notes="^Note:" | |
></section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment