aboutsummaryrefslogtreecommitdiff
path: root/data/templates/embed.htm
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/embed.htm')
-rw-r--r--data/templates/embed.htm9
1 files changed, 9 insertions, 0 deletions
diff --git a/data/templates/embed.htm b/data/templates/embed.htm
new file mode 100644
index 0000000..0334c22
--- /dev/null
+++ b/data/templates/embed.htm
@@ -0,0 +1,9 @@
+/* embedding all files of {{repo.getLink('display', null, true)}} */
+document.write('<link rel="stylesheet" href="{{htmlhelper.fullUrl('css/embed.css')}}"/>');
+document.write(
+ '<div class="phork" id="{{repo.id}}">'
+{% for file in repo.getFiles %}
+ + {% filter json_encode(constant('JSON_UNESCAPED_SLASHES'))|raw -%}{% include 'embed-part-file.htm' %}{%- endfilter %}
+{% endfor %}
+ + '</div>'
+);