Texen
  1. Texen
  2. TEXEN-11

Allow default properties to be overridden; extend contextProperties to include context.object.xxxx

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      The default Texen properties are embedded in the jar file and cannot be overriden.
      This should be fixed.

      The contextProperties could also be extended to support properties of the form context.object.xxx=classname.

      By the way, the construction of the "special" property names is different for the two types:
      context.object.xxx uses a prefix, whereas
      yyy.file.contents uses a suffix.

      This should perhaps be addressed.

        Issue Links

          Activity

          Hide
          Nathan Bubna added a comment -

          It has long been on my todo list to add VelocityTools support to Texen, Anakia and DVSL. Seems like the natural thing to do, and Tools 2 should make it a lot easier. I should have a little play in my schedule this week. I might take a stab at Texen first...

          Show
          Nathan Bubna added a comment - It has long been on my todo list to add VelocityTools support to Texen, Anakia and DVSL. Seems like the natural thing to do, and Tools 2 should make it a lot easier. I should have a little play in my schedule this week. I might take a stab at Texen first...
          Hide
          Barrie Treloar added a comment -

          the default properties should always be available, when you provide a new "contextProperties" you should be adding to it.

          And it definitely should support the context.objects syntax.

          By default it should include the velocity tools as well.

          This should also be better documented.
          It was only looking through the code I noticed that $now was defined for you.
          Useless since you can't format it, but better than nothing until DateTools is included.

          Show
          Barrie Treloar added a comment - the default properties should always be available, when you provide a new "contextProperties" you should be adding to it. And it definitely should support the context.objects syntax. By default it should include the velocity tools as well. This should also be better documented. It was only looking through the code I noticed that $now was defined for you. Useless since you can't format it, but better than nothing until DateTools is included.
          Hide
          Will Glass-Husain added a comment -

          Sounds reasonable.

          Sebb, if you want to submit a patch on this, that'd be fine. We should make sure the old property names still work though, for compatibility reasons.

          Show
          Will Glass-Husain added a comment - Sounds reasonable. Sebb, if you want to submit a patch on this, that'd be fine. We should make sure the old property names still work though, for compatibility reasons.

            People

            • Assignee:
              Unassigned
              Reporter:
              Sebb
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development