...Nustache - Logic-less templates for .NET *NOTICE*: I haven't used Nustache in a while and don't have enough bandwidth to responsibly maintain it. If you depend on Nustache and want committ access, please contat me! For a list of implementations (other than .NET) and editor plugins, see http://mustache.github.com/. Installation: - Pull from GitHub or download the repository and build it. - Or, install via NuGet (search for Nustache). - If you're using MVC, you'll want to build/install the Nustache.Mvc3 project, too. Usage: For non-MVC projects: - Add a reference to Nustache.Core.dll (done for you if you used NuGet). - Import the Nustache.Core namespace. - Use one of the static, helper methods on the Render class. var html = Render.FileToString("foo.template", myData); - Data can be object, IDictionary, or DataTable. - If you need more control, use Render.Template. - See the source and tests for more information. - For compiled templates: var template = new Template(); template.Load(new StringReader(templateText)); var compiled = template.Compile(null); var html = compiled(fooInstance); For MVC projects: - Add a reference to Nustache.Mvc3.dll (done for you if you used NuGet). - Add NustacheViewEngine to the global list of view engines. - See Global.asax.cs in the Nustache.Mvc3.Example project for an example. nustache.exe: - Command-line wrapper around Render.FileToFile. - Parameters are templatePath...
Words: 352 - Pages: 2
...Microsoft6/6/2011Rev 1.0 | | Windows Phone 7 Guide for Android Application Developers | | About this Document 4 Target Audience 4 Conventions Used in this Document 4 Chapter 1: Introducing Windows Phone 7 Platform to Android Application Developers 5 The Developer Tools 5 Windows Phone 7 Architecture 5 Comparing the Programming Stack of Windows Phone 7 with Android 7 Summary 11 Related Resources 11 Chapter 2: User Interface Guidelines 12 Designing the Application Interface 13 Application User Interface Design 14 Comparing Windows Phone 7 and Android Navigation 18 Windows Phone 7 Frame and Page Structure 19 Application Templates 21 Summary 21 Related Resources 21 Chapter 3: The Developer and Designer Tools 23 A Comparison of Android and Windows Phone 7 Tools 23 Development Life Cycle and Windows Phone 7 Developer Tools 24 The UI Design Tools 26 Building Applications 33 Debugging 34 Summary 38 Chapter 4: C# programming 39 Managed Programming 40 A Comparison between C# Features and Java Classes 41 A Comparison of Important Class Libraries 51 The New features of C# 54 Comparing API Documentation Tools 58 NDoc 58 NDocs vs. Javadoc 61 Summary 61 Related Resources 62 Chapter 5: A Comparison of Application Life Cycles in Windows Phone 7 and Android 63 Multitasking in Android and Windows Phone 7 63 Tombstoning of Applications in Windows Phone 7 64 Life Cycle of a Windows Phone 7 Application...
Words: 19181 - Pages: 77