Giter VIP home page Giter VIP logo

nvelocity's People

Contributors

emagers avatar jonorossi avatar phillip-haydon avatar stakx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nvelocity's Issues

AppVeyor on_success script shouldn't run in both Windows and Linux jobs

The on_success script is used to publish the NuGet package to nuget.org, we only need it to run on Windows, it also fails on Linux anyway:

...
Running "on_success" scripts
if ($env:APPVEYOR_REPO_TAG -eq "true") {
  nuget push ".\build\NVelocity.${env:APPVEYOR_BUILD_VERSION}.nupkg" -ApiKey $env:NUGET_API_KEY -Source https://api.nuget.org/v3/index.json
}
File does not exist (.\build\NVelocity.1.2.0.nupkg).
Command exited with code 1
Build failed

Fix .NET Framework build

This is the first issue in this new repository to kick start NVelocity development again, it stems from castleproject-deprecated/MonoRail#27. I've imported the source code (minus the cruft).

First things first, let's get a .NET Framework build going again with the new .NET tooling, the project files in the repository are for Visual Studio 2010.

/cc @phillip-haydon

Surrounding #else directive with curly brackets gives wrong result

According to http://velocity.apache.org/engine/devel/user-guide.html#if-elseif-else

When you wish to include text immediately following a #else directive you will need to use curly brackets immediately surrounding the directive to differentiate it from the following text. (Any directive can be delimited by curly brackets, although this is most useful for #else).

But it doesn't work.

var context = new VelocityContext();
var engine = new VelocityEngine();
var sw = new StringWriter();
var template = "#if(1 == 1)it's true!#{else}it's not!#end";
engine.Init();
engine.Evaluate(context, sw, "", template);
var expected = "it's true!";
Assert.AreEqual(expected, sw.ToString()); // <-- fails, actual (wrong) result is "it's true!#{else}it's not!"

Release 1.2.0

Initial release of rebooted NVelocity. The primary driving force of this release is to bring support for .NET Standard 2.0 for people who still use NVelocity, and those who wish to use it in new projects.

@castleproject/committers your input?

NuGet: <licenseUrl> element will be deprecated

NuGet outputs the following warning during packaging. We should change to specify the license.

WARNING: <licenseUrl> element will be deprecated,please consider switching to specifying the license in the package. Learn more: https://aka.ms/deprecateLicenseUrl.

While here it would be good to reinstate the Castle logo on the package, I know the icon can now be embedded into the package which is definitely much better than pointing to the web site.

Better builds

Can I submit a PR to get this working the same way Windsor does in terms of builds?

Missing documentation

Current situation:

  • This repository's README.me says:

    More information about NVelocity can be found at http://www.castleproject.org/

  • On the website, NVelocity is not (yet?) listed as an active project. Knowing that NVelocity used to be part of MonoRail, that's where I'm taking a look next, only to find that the MonoRail V2 documentation is back on GitHub!

  • And there it is that we finally find the documentation on NVelocity, however it is written in the context of MonoRail, which probably no longer matches the current situation / use case?

Suggestions:

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.