foundation / inky

Convert a simple HTML syntax into tables compatible with Foundation for Emails.
http://foundation.zurb.com/emails
676 stars 108 forks source link

Implementation of nuget package #71

Open mcshaz opened 7 years ago

mcshaz commented 7 years ago

The roadmap for this project includes adding a NuGet package.

I am after some clarification of what this means.

There are 2 possible ways I can see to use inky in a Visual Studio/.NET project:

  1. Visual studio has a task runner which will run Gulp tasks at stages like pre-build. By using something like razorengine.template, one can design emails in razor and then use gulp to expand the inky markup to HTML and inline CSS to a new template. I can put up something like a codeproject tutorial to create, for example, a forgot password email (which adds a security token to the link at runtime) in a .net project. The advantage of this is speed, the disadvantage is CSS classes cannot be chosen based on runtime data. To allow classes to be altered at runtime a library like premailer.net could be used to inline CSS at runtime (but still having converted inky markup to HTML before the visual basic build via task runner).
  2. Run inky each time an email is generated at runtime from within a .net based javascript interpreter such as Jint.net. This will be unnecessarily slow & I cannot think of a useful use scenario.

I cannot see how a nuget package would help, but might have missed something. Let me know if you would like me to create a tutorial with some screenshots for point 1, and if so, where you would like such a tutorial.