GithubHelp home page GithubHelp logo

sebagomez / stringtemplate.msbuild Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chandler14362/stringtemplate.msbuild

0.0 3.0 0.0 10 KB

MSBuild task that renders StringTemplate4 templates before compilation.

License: MIT License

C# 100.00%

stringtemplate.msbuild's Introduction

StringTemplate.MSBuild

StringTemplate.MSBuild is a MSBuild extension that renders StringTemplate4 templates before compilation. It is recommend you read the ST4 documentation here.

Creating Renderable Templates

The first step in the process of creating a renderable template is creating a template group. Please note that single template files (.st) support is currently planned and not implemented. Template groups are pretty cool, they let you define templates to your heart's content while providing a sense of structure. Some features I highly recommend you look at are regions and group inheritance. Letting StringTemplate.MSBuild know what templates to render is pretty simple. The only requirements are a defined render template within the group accompanied with an ouput file extension. Providing the file extension is best explained using the following examples C#: DbInterface.cs.stg python: messages.py.stg text: imrunningoutofideas.txt.stg.

If you want to see a project that utilizes StringTemplate.MSBuild, I highly recommend you look at Krypton.LibProtocol. The C# target utilizes templates to render a set of structs that share a common set of interfaces.

Planned Features

  • .st file support.
  • Configurable output directories. (as of now rendered files are plopped in the same directory as their template)

stringtemplate.msbuild's People

Contributors

chandler14362 avatar

Watchers

James Cloos avatar Sebastián Gómez avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.