2016-05-06 09:17:34 -04:00
|
|
|
include ../../../_includes/_util-fns
|
|
|
|
|
2016-05-06 10:42:01 -04:00
|
|
|
//- See the _util-fns file included above for a description of the use of these variables.
|
|
|
|
- var _docsFor = 'ts';
|
2016-05-10 03:51:23 -04:00
|
|
|
//- Other values match the defaults.
|
2016-05-06 09:17:34 -04:00
|
|
|
|
|
|
|
mixin liveExampleLink(linkText, exampleUrlPartName)
|
2016-05-20 19:18:58 -04:00
|
|
|
- var text = linkText || 'live example';
|
|
|
|
- var ex = exampleUrlPartName || getExampleName();
|
|
|
|
- var href = '/resources/live-examples/' + ex + '/ts/plnkr.html';
|
|
|
|
a(href='#{href}' target="_blank")= text
|
2016-05-06 09:17:34 -04:00
|
|
|
|
|
|
|
mixin liveExampleLink2(linkText, exampleUrlPartName)
|
2016-05-20 19:18:58 -04:00
|
|
|
//- In Dart this gives 2 links: to the demo and to the source.
|
|
|
|
+liveExampleLink(linkText, exampleUrlPartName)
|