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
0
votes
2 answers

C# "First"-like statement to replace foreach when calling an array

I am very new to C#, but I am in need of changing a small function that looks at an array. In the code I am working on, foreach is used to go through the array of items and render them on a webpage as list items. For now, I have to find various…
user1729506
  • 975
  • 4
  • 15
  • 28
0
votes
2 answers

Castle Nvelocity GetTemplate method won't work

I've been trying to follow this instructions to implement email templating using NVelocity but I keep getting a resource not found exception from the GetTemplate method. I've used Server.MapPath full routes and also relative routes and haven't been…
Raúl Roa
  • 12,061
  • 13
  • 49
  • 64
0
votes
1 answer

Castle MonoRail with asynchronous action view render exception

I'm trying to use async actions in MonoRail but when the view is rendered I get an NullReference exception, also tested with emtpy view file. I also tried to call RenderView("uploadTags.vm") in EndUploadTags. When I call RenderText(s) in…
ZxCvBnM
  • 277
  • 3
  • 14
0
votes
1 answer

NVelocity -- #parse with embedded resources

I'm generating emails based off embedded NVelocity templates and would like to do something with dynamically included sections. So my embedded resources are something like this: DigestMail.vm _Document.vm _ActionItem.vm _Event.vm My email routine…
Jake Stevenson
  • 3,009
  • 6
  • 35
  • 40
0
votes
1 answer

Prevent NVelocity from displaying Tokens

I have the following piece of code in my template that uses NVelocity to process form data: $PartnerProfile.Nvalue("Name") In case the Nvalue method doesn't return any value, I want NVelocity to display nothing. But it rather outputs the code, i.e.…
Ben
  • 538
  • 1
  • 9
  • 24
0
votes
1 answer

Is there an analog for URLResourceLoader class in nvelocity

I want to provide external resource to VelocityEnngine that located on external server by using url path, in Apache velocity there is URLResourceLoader class but i see that in NVelocity there is only FileRecourceLoader... Is there a way to provide…
alonp
  • 1,307
  • 2
  • 10
  • 22
0
votes
1 answer

Castle nVelocity and whitspace gobbling

I am using Castle nVelocity to create templates to produce some text files. I have found that if I do something like the following in my template, that my output line is indented in the resulting file as it is in the template. #foreach( $row in…
zaq
  • 2,571
  • 3
  • 31
  • 39
0
votes
1 answer

How install Nvelocity im my existent project?

I'll need to use NVelocity to show a page with some details peculiar like names, values, dates, etc... Well, i found the Nvelocity project, and...I don't have idea how install this in my project! I already downloaded the files src and demo in…
rochasdv
  • 539
  • 2
  • 8
  • 21
0
votes
2 answers

Has anyone got NVelocity working with ASP.NET MVC Preview 5?

I'm guessing I need to implement an NVelocityViewEngine and NVelocityView - but before I do I wanted to check to see if anyone has already done this. I can't see anything in the trunk for MVCContrib. I've already seen the post below - I'm looking…
BigJump
  • 15,561
  • 3
  • 31
  • 29
1 2 3 4 5 6
7