This file contains 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
<UsingTask TaskName="FindInEnumeration" TaskFactory="CodeTaskFactory" | |
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> | |
<ParameterGroup> | |
<SourceFiles ParameterType="Microsoft.Build.Framework.ITaskItem[]" Required="true" /> | |
<Files ParameterType="Microsoft.Build.Framework.ITaskItem[]" Required="true" /> | |
<Result ParameterType="Microsoft.Build.Framework.ITaskItem[]" Output="true" /> | |
</ParameterGroup> | |
<Task> | |
<Reference Include="System" /> | |
<Reference Include="System.Core" /> |
This file contains 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
<Target Name="BeforeLayout" Condition="'$(Configuration)'=='Release'"> | |
<FindInEnumeration Files="@(ExcludedFiles)" SourceFiles="@(EnumeratedFiles)"> | |
<Output ItemName="Result" TaskParameter="Result" /> | |
</FindInEnumeration> | |
<ItemGroup> | |
<EnumeratedFiles Remove="@(Result)"/> | |
</ItemGroup> | |
</Target> |
This file contains 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
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<ScriptsDir>Layouts\MyCoolProject\Scripts</ScriptsDir> | |
<ManifestPath>pkg\Release\MyCoolProject</ManifestPath> | |
</PropertyGroup> | |
<ItemGroup> | |
<ExcludedFiles Include=" | |
$(ScriptsDir)\jquery-1.9.1.js; | |
$(ScriptsDir)\backbone.js; | |
$(ScriptsDir)\backbone-sharepoint.extensions.js; |
This file contains 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
<Target Name="AfterLayout" Condition="'$(Configuration)'=='Release'"> | |
<ExcludeFromManifest Files="@(ExcludedFiles)" ManifestPath="$(ManifestPath)" /> | |
</Target> |
This file contains 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
<UsingTask TaskName="ExcludeFromManifest" TaskFactory="CodeTaskFactory" | |
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> | |
<ParameterGroup> | |
<ManifestPath ParameterType="System.String" Required="true" /> | |
<Files ParameterType="Microsoft.Build.Framework.ITaskItem[]" Required="true" /> | |
</ParameterGroup> | |
<Task> | |
<Reference Include="System" /> | |
<Reference Include="System.Core" /> | |
<Reference Include="System.Xml" /> |
This file contains 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
App = Ember.Application.create({ | |
LOG_TRANSITIONS: true, | |
rootElement: '#main', | |
ready: function () { | |
// disable SP 2013 hashchange event handling | |
_spBodyOnHashChange = function () { }; | |
} | |
}); |
This file contains 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
App.Router.map(function () { | |
this.route('news', { path: '/' }); | |
this.resource('news', { path: '/news' }, function () { | |
this.route('view', { path: '/:news_id' }); | |
}); | |
}); |
This file contains 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
App.NewsRoute = Em.Route.extend({ | |
model: function (params) { | |
return params; | |
}, | |
setupController: function (controller) { | |
controller.load(); | |
} | |
}); |
This file contains 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
function getQueryStringParameter(paramToRetrieve) { | |
var params = | |
document.URL.split('?')[1].split('&'); | |
var strParams = ''; | |
for (var i = 0; i < params.length; i = i + 1) { | |
var singleParam = params[i].split('='); | |
if (singleParam[0] == paramToRetrieve) | |
return singleParam[1]; | |
} | |
} |
This file contains 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 options = new TemplateCompilerOptions | |
{ | |
ModuleName = "myapp", | |
Prefix = "/", | |
Standalone = true | |
}; | |
var bundle = new TemplateBundle("~/templates", options) | |
.Include("~/templates/template1.html", "~/templates/template2.html"); | |
bundles.Add(bundle); |
OlderNewer