examples/advanced/custom-formats-with-templates/templates/ios-plist.template
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<%
var allProperties = _.each(allProperties, function(prop) {
if(prop.type === 'color') {
prop.tag = 'string';
} else if(prop.type === 'size') {
prop.tag = 'integer';
} else if(prop.type === 'time' || prop.type === 'opacity') {
prop.tag = 'real';
} else if(prop.type === 'content') {
prop.tag = 'string';
} else {
prop.tag = 'string';
}
});
%>
<dict>
<% _.each(allProperties, function(prop) {
%><key><%= prop.name %></key><<%= prop.tag %>><%= prop.value %></<%= prop.tag %>><% if (prop.comment) { %><!-- <%= prop.comment %> --><% } %>
<% }); %>
</dict>
</plist>