Giter Site home page Giter Site logo

dynamo.autott's Introduction

WHAT IS IT

Visual Studio Add-in for automatically running T4 Text Template (TT) files when one of the registered triggers are hit.

HOW

You can install the Add-in by downloading the source code here on GitHub, compile it and put the .dll and .addin file in the Visual Studio addins folder, or by using the installer that can be found here Dynamo.AutoTT Installer and on Visual Studios Extension Manager (Tools->Extension Manager).
Remember to enable the add-in in Visual Studio (Tools->Add-in Manager).
Just create an AutoTT.config file anywhere in the project with the configuration, and it will automatically be loaded.

CONFIGURATION EXAMPLE

<configuration>
	<template name="T4MVC.tt" onbuild="true" >
		<trigger pattern="^Controllers\\" />
		<trigger pattern="^Content\\" />
	</template>
</configuration>  
  • Note the trigger pattern is a regular expression and special characters need to be escaped

INTELLISENSE

For intellisense when writting the AutoTT.config configuration file add the xsd schema found in the \Dynamo.AutoTT\Configuration\ folder (also included in the install folder if using the installer) to Visual Studio either via the XML->Schemas option (visible when a xml file is open) or by putting the xsd schema file in the Visual studio xsd schema folder which could normally be found at %InstallRoot%\Xml\Schemas

dynamo.autott's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dynamo.autott's Issues

When should the Templates be executed ?

I am not quite sure when the Templates should be executed.

Currently it works like this:

  • Document saved: If the item/file saved is not a configuration file it checks if any triggers matches and execute the template if there is a match.
  • Project Build: Executes all templates registered in the configuration which have onbuild="true".

What I cant decide on:

  • Should it execute all templates in the configuration, when the configuration file is either added to the project / loaded or saved, to make sure all templates registered are up-to-date ?

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.