Comments (2)
Hi @gtbuchanan,
I don't actually think i've ever used the functionality in visual studio so am not entirely sure what it'd be used for. What would you like the file to be transformed in to, a .cs
file? If so i'd probably recommend Scripty over this since it's a much more fully featured tool. I'd be interested in hearing your ideas though.
from stubble.
@Romanx With T4, the generator functionality is used to automatically create the resulting file when the template is saved in Visual Studio. However, T4 has a built-in construct for defining the output file extension:
<#@ output extension=".cs" #>
After thinking about it a little longer, the following would be required for this to work:
- The template would need to define the output file extension. One idea is to require the extension to be in the file name. For example:
Glyphicons.cs.mustache
- The template would need to know where to get the data to use. This is easy with T4 because you can load files from the template. Not too sure about this one for Mustache. Perhaps it could rely on an accompaning JSON file. For example:
Glyphicons.json
I was not aware of Scripty. Considering these things, you might be right about Scripty being a better choice. Though there is a current issue about 3rd party references being a pain.
from stubble.
Related Issues (20)
- How can I solve nested stubble values from mustache HOT 1
- Any idea to .net core Startup.cs Factory for StubbleBuilder? HOT 2
- Render variable names instead of empty strings? HOT 3
- Compiled renderer evaluating int? truthy value incorrectly HOT 1
- Get output as object rather than string from Render HOT 4
- Render a tag correctly however it is null! HOT 1
- Not compatible with .Net standard 2.1 and .Net Core 3.1 HOT 3
- SetIgnoreCaseOnKeyLookup does not work HOT 2
- An attribute in the template is "User.Name" Parse error HOT 1
- Parent nested object access HOT 2
- Render pipeline is not passed to partials HOT 1
- Execute method with parameter's default value HOT 4
- Add Cake plugin
- Compiled renderer throws exception when compiling interpolated nullable int HOT 1
- Truthiness on a Dictionary<string, object> HOT 5
- PartialTagParser exhaustion side effect?!
- [Question/Discussion] Rework of the Parser to support more information on its output
- Anonymous object property is not retrieved HOT 4
- Please add Extensions Setting Support for system.text.json HOT 1
- How to count number of variables in a template ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stubble.