sandord / subspace.texttemplating Goto Github PK
View Code? Open in Web Editor NEWA T4-like .NET text templating library that supports runtime parsing and does not depend on Visual Studio
License: Other
A T4-like .NET text templating library that supports runtime parsing and does not depend on Visual Studio
License: Other
This can be accomplished, for example, by removing the context
argument from TransformText
and TransformFile
and have these methods take a properties
argument which accepts an anonymous type like the following:
new { Context = myContext }
and
new { Context = myContext, SecondProperty = myInstance }
This style is not supported by T4 and an argument for dropping it may be to stay as close to T4 as much as possible.
Change the script generators to use a CodeDomProvider
By implementing a caching mechanism, performance can be greatly improved because templates will not have to be compiled anymore every time they are transformed.
The inherits
attribute allows specification of a base class for the generated template class.
The AppDomain assures that the assembly can be unloaded (by unloading the AppDomain itself) so under certain circumstances, this may be an advantage. In addition, it provides AppDomain separation, which may be desirable under certain circumstances.
List the additional features as well.
Add support for Visual Basic
This is probably better than loading the generated assembly in the current app domain as there is no way of unloading it.
Visual Studio 2010 SP1 adds support for T4 template inheritance, reflect that implementation.
This notation implies a <%= %> with automatic XML entity encoding.
A build script should be available.
Currently, a lock is held on the assembly cache and the compilation and execution stages. This means that multiple threads cannot perform transformations simultaneously. This is particularly hurtful for performance in web scenarios.
Implement unit tests that compare the output of T4 templates that are transformed by Visual Studio with the transformation output generated by this library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.