-
-
Save puyo/707298 to your computer and use it in GitHub Desktop.
:javascript | |
Shining.config({...}) | |
#first | |
%h1 Hi there world | |
%p Yes this is a slide | |
%p.step with a step | |
:javascript | |
// stuff for the first slide | |
:css | |
/* css relevant to the first slide */ | |
#second | |
%h1 Second slide | |
%aside Still a slide | |
#third | |
%h1 Third slide | |
%p How many more? |
Being a JS only app does differentiate Shining nicely from ShowOff. I will go try Sammy.js's Haml. I think the Haml option is worth pursuing (in my fork of Shining). I will try using Jasmine to test what I need from the JS Haml implementation.
I'm just mucking around for fun and learning Javascript. Don't take me too seriously. :-)
Reading about Sammy. How do you feel about Shining as a Sammy app?
Not at all. If you get it done and it works nicely, please let me know and I'll happily merge, add credits and buy you a cup of Coke at the next meetup! :D
Don't need Sammy to do what Sammy does is how I feel :)
Mmm. I'm trying it now and none of their examples work. It looked okay on the box. It does seem like overkill for this.
I think by far the most welcome change I can think of is Jasmine specs. I've tried getting the suite tested through it to no avail a few times.
Sammy's Haml is no better. It lacks forEach, filter, trim, etc. too and thus doesn't work on IE8. Your copy of haml-js seems fine though. Do you not feel confident about it? Is there anything it doesn't handle?
Mine works because I forked it and made it work. If you look at my chances, what I did is I added the missing native JS methods to it, so it just ensures it works everywhere. That could well be copied and pasted into Sammy.js' haml-js.
Now the problem with haml-js was that stuff such as line breaks would sometimes work, and sometimes not. Sometimes you had to use 2 line breaks to get it to work. It was full of small quirks like that that would make the experience frustrating. So I figured Shining would be better off without it.
Ah okay. That does sound frustrating. sad panda
One other thing to bear in mind: slide scripts still need to exist. I think it could be like this:
So Shining would have to find
<script>
nodes, and run through it's slide script parser.