CodeSmith Community
Your Code. Your Way. Faster!

ActiveSnippet: Create an ActiveSnippet

ActiveSnippet: Create an ActiveSnippet
posted by Robert Hinojosa
10-18-2006


Downloads: 4
File size: 0 B
Views: 8,992

ActiveSnippets - Imagine Visual Studio 2005 snippets, but with the full power of CodeSmith available to execute any logic or access any complex metadata (including database schema and xml data) to control the output of your snippets.

Step 1 of an ActiveSnippet is to create a CodeSmith Template.  This shows an example of template that will create all of the properties for a table in C#.  This template also shows how CodeSmith already has plenty of helper types, like the StringUtil and ScriptUtil classes.

Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems