This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#my-template").expand({ | |
name: "Cooking with Crowley", | |
author: { name: "Shawn Crowley" } | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#my-template").expand({ | |
"$h2": "Cooking with Crowley", | |
"$.content p.excerpt": "Step 1, light the grill. Step 2..." | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#my-template").expand({ | |
"$input[name=like]": { ":checked": true } | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#my-template").expand({ | |
author: { "addClass()": "awesome" }, | |
"$input[name=comment]": { "val()": "nice post!" } | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#my-template").expand({ author: false }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var comments = ["Sounds delicious!", "What next?!?"]; | |
// or, if there are no comments | |
// var comments = []; | |
$("#my-template").expand({ | |
content: "Step 1, light the grill. Step 2...", | |
comments: function(el) { | |
if (comments.length == 0) { | |
return false; // this will remove the comments div |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var comments = [ | |
{ author: "Dave Crosby", approved: true, text: "Sounds Delicous!" }, | |
{ author: "Micah Alles", approved: false, text: "What next?!?" }, | |
{ author: "Drew Colthorp", approved: true, text: "Thanks for the info." } | |
]; | |
$("#my-template").expand({ | |
content: "Step 1, light the grill. Step 2...", | |
comments: function(el) { | |
var approvedComments = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asdfad |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Motion::Project::App.setup do |app| | |
... | |
app.codesign_certificate = File.read(".devcert").strip if File.exists?(".devcert") | |
... | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iPhone Developer: Micah Alles (S54AU7NS4Z) |