What is Adam.JSGenerator?

What does it do?

Adam.JSGenerator allows you to write code that produces JavaScript snippets in a more readable and maintainable way. Instead of having to write tedious string concatenation code, interlined with String.Format and StringBuilder.Append lines, you use a fluent syntax to produce a object structure that produces the JavaScript output that you need.

What does it not do?

First, it's not a replacement for writing proper scripts and embedding them as resource in your assembly or as content in your web app. Adam.JSGenerator is not meant for that. Second, it does not compile your C# into JavaScript, it creates the JavaScript at runtime.

Where do I get started?

Have a look at our quick tour, download the installer or sourcecode, and run the demonstration program to give you a head start.

Requirements

This project is written in C# using Visual Studio 2008, but the code itself is regular C#3 and makes use of extension methods and anonymous types. Therefore, to compile the source code you'll need Visual Studio 2008 or later. You might get it started with an Express edition or MonoDevelop, but it's possible that not all projects in the solution will load (specifically the test project, the setup project or the demonstration program).

The compiled library should work in any .NET 2.0 or later runtime, including Mono. It's not signed, so it can be used as a private assembly in a partial trust environment.

Installation

The quickest way to get started is by downloading the setup package and running it on your own machine. You'll need to add a reference to the installed assembly (which will be in the program folder created by the installer) in your project, and you'll need to include the Adam.JSGenerator namespace in your sources. The package is inherently 32-bit, like the demonstration program, but the library is suitable for 64-bit applications as well.

Last edited Jul 23, 2010 at 3:21 PM by DaveVdE, version 5

Comments

No comments yet.