diff options
Diffstat (limited to 'nikola/plugins/task/mustache/mustache.html')
| -rw-r--r-- | nikola/plugins/task/mustache/mustache.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nikola/plugins/task/mustache/mustache.html b/nikola/plugins/task/mustache/mustache.html new file mode 100644 index 0000000..7ff6312 --- /dev/null +++ b/nikola/plugins/task/mustache/mustache.html @@ -0,0 +1,34 @@ +<head> + <link href="/assets/css/bootstrap.css" rel="stylesheet" type="text/css"> + <link href="/assets/css/bootstrap-responsive.css" rel="stylesheet" type="text/css"> + <link href="/assets/css/rst.css" rel="stylesheet" type="text/css"> + <link href="/assets/css/code.css" rel="stylesheet" type="text/css"> + <link href="/assets/css/colorbox.css" rel="stylesheet" type="text/css"/> + <link href="/assets/css/theme.css" rel="stylesheet" type="text/css"/> + <link href="/assets/css/custom.css" rel="stylesheet" type="text/css"> + <script src="/assets/js/jquery-1.10.2.min.js" type="text/javascript"></script> + <script src="//cdn.jsdelivr.net/jquery.mustache/0.2.7/jquery.mustache.js"></script> + <script src="//cdn.jsdelivr.net/mustache.js/0.7.2/mustache.js"></script> + <script src="/assets/js/jquery.colorbox-min.js" type="text/javascript"></script> + <script type="text/javascript"> +function load_data(dataurl) { + jQuery.getJSON(dataurl, function(data) { + $('body').mustache('view', data, { method: 'html' }); + window.location.hash = '#' + dataurl; + }) +}; +$(document).ready(function() { +$.Mustache.load('/mustache-template.html') + .done(function () { + if (window.location.hash != '') { + load_data(window.location.hash.slice(1)); + } + else { + load_data('{{first_post_data}}'); + }; + }) +}); +</script> +</head> +<body style="padding-top: 0;"> +</body> |
