Like this plug in, I do ...
Template Utility Functions Plugin by dnparsons
http://www.mygenerationsoftware.com/TemplateLibrary/Archive/?guid=4a285a9a-4dd2-4655-b7ca-996b5516a5a1
This plugin contains some commonly used template functions:
- Code: Select all
public string TrimSpaces(string name)
public string SetPascalCase(string name)
public string SetCamelCase(string name)
public string GetOutputFile(string path, string fileName, string suffix, bool prefix, bool trimName)
public void SaveInputToCache(IZeusContext theContext)
public void ReadInputFromCache(IZeusContext theContext)
This Plug-In can cache your choices between templates runs without requiring the creation of a MyGeneration Project.
