Coder Social home page Coder Social logo

Comments (2)

Romanx avatar Romanx commented on August 14, 2024

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.

gtbuchanan avatar gtbuchanan commented on August 14, 2024

@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:

  1. 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
  2. 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)

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.