Skip to content

Instantly share code, notes, and snippets.

@PlasticLizard
Created September 26, 2010 08:17
Show Gist options
  • Save PlasticLizard/597723 to your computer and use it in GitHub Desktop.
Save PlasticLizard/597723 to your computer and use it in GitHub Desktop.
test("a partial preceding a selector", function() {
var string = "Dudes: {{>dude}} {{another_dude}}";
var dude = "{{name}}";
var hash = {name:"Jeepers", another_dude:"Creepers"};
shouldCompileTo(string, [hash, {partials: {dude:dude}}], "Dudes: Jepers Creepers", "Regular selectors can follow a partial");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment