{slinki} { "title" : "SliNKi 3rd Generation", "copyright" : "© 2012-2013, 1060 Research Limited", "favicon" : "/wink/res/slinkyTemplate/nk2010/favicon.png", "splashDuration": 6000, "css" : [ { "href" : "/wink/res/revealImpl/1.1.1/css/print/print.css", "media" : "print" }, { "href" : "/wink/res/revealImpl/1.1.1/css/reveal.css" }, { "href" : "/wink/res/revealImpl/1.1.1/css/theme/1060.css" }, { "href" : "/wink/res/revealImpl/1.1.1/css/print/screen.css", "screen" : true }, { "href" : "/wink/res/revealImpl/1.1.1/css/print/pdf.css", "pdf" : true }, { "href" : "/wink/res/revealImpl/1.1.1/lib/css/magula.css" }, { "href" : "/wink/style/xmlverb.css" }, { "href" : "/org/netkernel/html5/framework/bootstrap/latest/css/bootstrap.min.css" }, { "href" : "/org/netkernel/html5/framework/fontawesome/latest/css/font-awesome.min.css" } ] } {/slinki} {splash} {request}res:/res/materials/2013/01/SliNKi-Splash.txt{/request} {/splash} {slide} {html}
{slide}
===Instance of Example Page===
*Bullet 1
*Bullet 2
Mary had a little lamb.
{/slide}
{/html}
'''{slide}''' is the macro that delimits a slide.
''The following slide is the rendering of the wiki shown above...''
{request}meta:st:nk2010:footer{/request}
{/slide}
{slide}
===Instance of Example Page===
*Bullet 1
*Bullet 2
Mary had a little lamb.
{request}meta:st:nk2010:footer{/request}
{/slide}
{slide}
===Presentations===
*Each '''{slide}...{/slide}''' block defines a different slide
*You add as many slides as you need for your presentation
*The content is all just ''wiki'' text
*So its ''very fast and very easy'' to create presentations
*{request}meta:slinki:logo{/request} is Resource Oriented - so you can easily include other resources. This means its very easy to create slide libraries and save ''lots'' of time.
*Its even easy to have ''dynamically generated slides''.
{request}meta:st:nk2010:footer{/request}
{/slide}
{slide}
===Booting===
To boot to {request}meta:slinki:logo{/request} inside {request}meta:wink:logo{/request} (''or within NetKernel docs'') you use the {slinki} macro at the top of your page...
{html}
{slinki}
{
//Options go here as a JSON array (see reference)
}
{/slinki}
{/html}
This dynamically transforms the page into a presentation.
If you remove the {slinki} macro your page just looks like a regular wiki page (which can be handy as a basic high-level preview mode)
{request}meta:st:nk2010:footer{/request}
{/slide}
{slide}
===Macro Engines===
{request}meta:slinki:logo{/request} is just one macro provided as part of NetKernel's ''Wiki Resource Model''.
So its simple to extend with [http://docs.netkernel.org/book/view/book:wikicore:book/doc:wiki:core:macros|your own macro engines].
Some of the built-in macro engines include:
{html}
//Javascript source code...
var data = pv.range(0, 10, .1).map(function(x)
{
return {x: x, y: Math.sin(x) + Math.random() * .5 + 2};
}
);
{/html}
{request}meta:st:nk2010:footer{/request}
{/slide}
{slide}
{slinki}
{ "title": "Your title here",
"copyright": "Your copyright statement here",
"scripts" : [ "/foo/baa.js", "/boo/baz.js" ]
}
{/slinki}
{/html}
''For full details see the {request}meta:slinki:logo{/request} reference docs''
[http://localhost:1060/book/view/book:org:netkernel:wiki:slinki/]
{request}meta:st:nk2010:footer{/request}
{/slide}
{slide}
.mystyle { background-color: #EDEA49; }
{request}meta:st:nk2010:footer{/request}
{/slide}
{slide}
{request}meta:footer{/request}
{/html}
*Each {request}meta:slinki:logo{/request} logo is done like this
{html}
{request}meta:slinki:logo{/request}
{/html}
*So its really easy to create '''slide libraries'''. Or if the URI is to an http:// URL - you can do "slide mashups".
{request}meta:st:nk2010:footer{/request}
{/slide}
{slide}
|
Peter pjr [at] netkernel {dot} org @pjr1060, @netkernel |
Brian brian [dot] sletten [at] gmail {dot} com @bsletten |
![]() |
![]() |
{image}/wink/style/poweredby.png{/image} |
{slinki}
{
"title" : "SliNKi 3rd Generation",
"copyright" : "© 2012-2013, 1060 Research Limited",
"favicon" : "/wink/res/slinkyTemplate/nk2010/favicon.png",
"splashDuration": 4000,
"css" : [
{ "href" : "/wink/res/revealImpl/1.1.1/css/print/print.css", "media" : "print" },
{ "href" : "/wink/res/revealImpl/1.1.1/css/reveal.css" },
{ "href" : "/wink/res/revealImpl/1.1.1/css/theme/1060.css" },
{ "href" : "/wink/res/revealImpl/1.1.1/css/print/screen.css", "screen" : true },
{ "href" : "/wink/res/revealImpl/1.1.1/css/print/pdf.css", "pdf" : true },
{ "href" : "/wink/res/revealImpl/1.1.1/lib/css/magula.css" },
{ "href" : "/wink/style/xmlverb.css" },
{ "href" : "/org/netkernel/html5/framework/bootstrap/latest/css/bootstrap.min.css" },
{ "href" : "/org/netkernel/html5/framework/fontawesome/latest/css/font-awesome.min.css" }
]
}
{/slinki}
{/html}
Here's the [http:/wink/res/materials/2013/01/SliNKi.txt|full source for these slides]
{request}meta:st:nk2010:footer{/request}
{/slide}
{/vslides}