Questions tagged [nvelocity]

NVelocity is a port of the Apache Jakarta Velocity project. It is a simple, easy to learn and extensible template engine.

NVelocity is a port of the Apache Jakarta Velocity project. It is a simple, easy to learn and extensible template engine.

99 questions
27
votes
10 answers

Is the NVelocity project dead? Are there alternatives?

I'm looking for a template engine for .NET/C# to generate email notifications in my application. I read about NVelocity in the past and think it would fit my needs, but it seems this project is dead. Would you still recommended to use NVelocity for…
M4N
  • 94,805
  • 45
  • 217
  • 260
8
votes
2 answers

NVelocity - Only show row if not null

I have the following in my NVelocity template: #if($PO.GiftMessage != '') Gift Message
$PO.GiftMessage
Alex
  • 37,502
  • 51
  • 204
  • 332
5
votes
2 answers

Does NVelocity no longer support string templates?

We have a bunch of NVelocity templates in embedded resources that we use for emails. We want to move these templates to the DB so they can be configured easily by users. It seems though that NVelocity (Castle port) doesn't support strings as…
Kyle West
  • 8,934
  • 13
  • 65
  • 97
5
votes
2 answers

Problem with NVelocity, foreach and two Lists

is there an easy way to solve the following problem. Let's say I fetch a IList with some books in my controller from my model. Now I want to enrich the output and fetch a preview from Amazon with another model from an outside framework and get…
5
votes
1 answer

How to catch InvalidReference error in NVelocity

I am using codeplex NVelocity library on .net and i want to catch an error when I execute Evalute method on VelocityEngine instance and one of the parameter in template text was not found. How can I obtain this? I find IInvalidReferenceEventHandler…
Peter Starbek
  • 703
  • 8
  • 12
4
votes
1 answer

Where is the latest source code of nvelocity

I am thinking of using nvelocity as a template engine for some emails. I am having problems of finding the latest source code of nvelocity. The GitHub source no longer exists. The first version I get in google is on codeplex which I believe that is…
Podge
  • 467
  • 3
  • 16
4
votes
3 answers

For loop in NVelocity

Does NVelocity support #for loops? I've looked through the documentation and all I could find was the #foreach loop. I want to loop over a 2 dimensional array.
Mircea Grelus
  • 2,905
  • 1
  • 20
  • 14
4
votes
5 answers

NVelocity not finding the template

I'm having some difficulty with using NVelocity in an ASP.NET MVC application. I'm using it as a way of generating emails. As far as I can make out the details I'm passing are all correct, but it fails to load the template. Here is the code: private…
Colin Mackay
  • 18,736
  • 7
  • 61
  • 88
3
votes
2 answers

Castle Nvelocity - Getting started

Im trying to follow this guide: http://www.castleproject.org/others/nvelocity/usingit.html Can you tell me what dlls I have to include to get his working: VelocityEngine velocity = new VelocityEngine(); ExtendedProperties props = new…
robert
3
votes
2 answers

Does Razor needs MVC3 or can I use it only with .NET?

I am newbie for template engines Just I am curious is it possible to use Razor without MVC ? I want to use a template engine in .NET. I have looked at the NVelocity but razor seems more understandable to me
Barış Velioğlu
  • 5,709
  • 15
  • 59
  • 105
3
votes
2 answers

ViewComponent not found after upgrading Monorail from v1.0.3 to v2.1RC

I'm using Monorail in my C# web application. Since I upgrated it (.Net Framework 2 to 4 and Monorail 1.0.3 to 2.1RC), my ViewComponent class is not found. All my controllers seem to work fine. I'm using nVelocity View Engine. I'm not using Windsor,…
Laurent B
  • 43
  • 5
3
votes
1 answer

Ignore formatting certain sections in Visual Studio 2010

I know a lot have asked about how to tweak the formatting options in Visual Studio, but is there a way to instruct Visual Studio to ignore certain sections of a document? My problem is that I have a Velocity template, but Visual Studio does not know…
Siewers
  • 22,626
  • 3
  • 20
  • 31
3
votes
1 answer

Automatically HTML Encoding NVelocity Output (EventCartridge & ReferenceInsert)

I wanted to try getting NVelocity to automatically HTML encode certain strings in my MonoRail app. I looked through the NVelocity source code and found EventCartridge, which seems to be a class which you can plugin to change various behaviours. In…
James Morcom
  • 1,749
  • 14
  • 17
3
votes
3 answers

NVelocity ASP.NET Examples

I'm looking to use NVelocity in my ASP.NET MVC application, not as a view engine, just for rendering some email templates. However, I cannot for the life of me get it to work. I have downloaded it from the castle project and followed the example at…
Ben Foster
  • 34,340
  • 40
  • 176
  • 285
3
votes
1 answer

asp mvc with nvelocity?

I am trying use NVelocity with ASP.NET MVC, but I am having difficulty navigating the noise of out-of-date information. There are many broken links, incorrect info, etc. Is there a guide or howto that works with the current MVC and NVelocity API…
Neil Cronin
  • 483
  • 1
  • 4
  • 10
1
2 3 4 5 6 7