aboutsummaryrefslogtreecommitdiffstats
path: root/docs/validator.template
diff options
context:
space:
mode:
authorIgor Minar2010-11-05 21:12:37 -0700
committerIgor Minar2010-11-09 22:27:31 -0800
commit324694a58b6d0ed33e05b511be4767573d9187dd (patch)
tree0b7243e721da17e9b5c5a1111ed9c0d28829b309 /docs/validator.template
parenteffcd340e9d41a2ab8368e4de06a1a83a206ac32 (diff)
downloadangular.js-324694a58b6d0ed33e05b511be4767573d9187dd.tar.bz2
Better example widget
- syntax highlighting - tabless design - rename widget to doc:example - rename widget files (wiki_widget.* -> doc_widget.*) - example section is now optional
Diffstat (limited to 'docs/validator.template')
-rw-r--r--docs/validator.template14
1 files changed, 10 insertions, 4 deletions
diff --git a/docs/validator.template b/docs/validator.template
index 2d5d4bc9..124f35b9 100644
--- a/docs/validator.template
+++ b/docs/validator.template
@@ -25,9 +25,15 @@ angular.validator.{{shortName}}({{paramFirst.name}}{{#paramRest}}{{^default}}, {
<h3>CSS</h3>
{{{css}}}
+{{#example}}
<h2>Example</h2>
{{{exampleDescription}}}
-
-<WIKI:SOURCE style="display:block;">
-{{{example}}}
-</WIKI:SOURCE> \ No newline at end of file
+<doc:example>
+ <doc:source>
+{{/example}}
+ {{{example}}}
+{{#example}}
+ </doc:source>
+ <doc:scenario>{{{scenario}}}</doc:scenario>
+</doc:example>
+{{/example}}