Skip to content

Commit

Permalink
Merge branch 'master' of github.com:dhgamache/Glue
Browse files Browse the repository at this point in the history
  • Loading branch information
David Gamache committed Apr 7, 2012
2 parents fba19f3 + 9b8a3f2 commit 2d40e3e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/glue.js
Expand Up @@ -39,15 +39,14 @@ $(function() {
} }


function renderTemplate(templateName, templateContainer) { function renderTemplate(templateName, templateContainer) {

$.ajax({ $.ajax({
url: templateName + ".html", url: templateName + ".html",
cache: false cache: false
}).done(function(html) { }).done(function(html) {
templateContainer templateContainer.html(html)
.empty()
.append(html)
var subincludes = templateContainer.find($('[glue-src]')); var subincludes = templateContainer.find($('[glue-src]'));
if(subincludes.length != 0) { if (subincludes.length != 0) {
subincludes.each(function() { subincludes.each(function() {
renderTemplate($(this).attr('glue-src'), $(this)); renderTemplate($(this).attr('glue-src'), $(this));
}) })
Expand Down

0 comments on commit 2d40e3e

Please sign in to comment.