UNPKG

suh-dgeni-ngdocs

Version:

A package to generate ng-docs similar to what is used on AngularJS website.

22 lines (19 loc) 746 B
<!doctype html> <html lang="en"{% if doc.example['ng-csp'] %} ng-csp{% endif %}> <head> <meta charset="UTF-8"> <title>Example - {$ doc.id $}</title> {% for stylesheet in doc.stylesheets %}<link href="{$ stylesheet.path $}" rel="stylesheet" type="text/css"> {% endfor %} {% for script in doc.scripts %}<script src="{$ script.path $}"></script> {% endfor %} {% if doc.example.fixBase -%} <script type="text/javascript"> angular.element(document.getElementsByTagName('head')).append(angular.element('<base href="' + window.location.pathname + '" />')); </script> {%- endif %} </head> <body {% if not doc.example['ng-app-included'] %}ng-app="{$ doc.example.module $}"{% endif %}> {$ doc.fileContents $} </body> </html>