Velocity
  1. Velocity
  2. VELOCITY-154

[PATCH] Relative resource loading for #include and #parse

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All

      Description

      This little patch allows one to do

      #parse("foo.vm")

      where foo.vm is located in the same directory as the template containing the
      #parse directive.

      It is independant from the resource loader (and shouldn't impact loaders that
      don't use path) : the only modified files are Parse.java and Include.java.

      CloD

        Activity

        Hide
        Claude Brisson added a comment -

        Created an attachment (id=5381)
        patch file to Parse.java and Include.java

        Show
        Claude Brisson added a comment - Created an attachment (id=5381) patch file to Parse.java and Include.java
        Hide
        Will Glass-Husain added a comment -

        Proposed event handler for #input and #parse would be another route to this
        functionality. Suggest that patch be uploaded instead.

        http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20342

        Show
        Will Glass-Husain added a comment - Proposed event handler for #input and #parse would be another route to this functionality. Suggest that patch be uploaded instead. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20342
        Hide
        Charles Morehead added a comment -

        I'd like to see support for relative includes, as well.

        Show
        Charles Morehead added a comment - I'd like to see support for relative includes, as well.
        Hide
        Will Glass-Husain added a comment -

        This is now in the (unreleased) v1.5 (IncludeRelativePath)

        Show
        Will Glass-Husain added a comment - This is now in the (unreleased) v1.5 (IncludeRelativePath)
        Hide
        Henning Schmiedehausen added a comment -

        Close all resolved issues for Engine 1.5 release.

        Show
        Henning Schmiedehausen added a comment - Close all resolved issues for Engine 1.5 release.

          People

          • Assignee:
            Unassigned
            Reporter:
            Claude Brisson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development