How CodeStencil Works

The concept of code generation within CodeStencil is quite simple - Keyword string replacement.


You can define any expansion label for a string that needs to be replaced and then CodeStencil does the rest.

CodeStencil is simply an IDE that helps you intelligently use an existing codebase to build a stencil (stencils are similar to templates) that can be used to generate structured code which now gives you the option to define strings for replacement. From the screenshot, NAMESPACE will be replaced by "Dolasoft" during code generation.

Unlike standard code generators, you do not need to learn a template language. If you do not want to build your stencil from scratch, you can create it within minutes from already generated code (See how, here). 

For example, if you want to insert a string (during code generation) representing your namespace, all you need to do is define the Expansion String and the replacement text in the Expander panel.

Expansion labels are defined inside Expanders.

Code Generation with CodeStencil is an easy process that does not require learning a new templating language.



How Stencils work

Generating a working app is very easy so long as there is a custom stencil. Developers have the flexibility of creating stencils for any language/environment, the only requirement being basic knowledge of C#.

1. Create a new Project

Create a new CodeStencil project by selecting an existing Stencil, e.g. the DevEx Grid Stencil.

2. Import a DB Schema from an existing database
3. Configure if necessary
4. Generate your code
5. Run the application

About CodeStencil

CodeStencil is Published and Marketed by Zera Systems Inc.

© 2018-2019 CodeStencil - Zera Systems Inc. All Rights Reserved.

No