Griffon
  1. Griffon
  2. GRIFFON-159

Allow addons to contribute methods/properties to other artifacts

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.3
    • Fix Version/s: 0.9
    • Component/s: cli, rt
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Addons do not contribute nodes/methods/properties to artifacts other than Views unless you list each one of them. In other words

      root.'MyAddon'.controller = ['foo', 'bar']
      

      It should be possible to do just this

      root.'MyAddon'.controller = '*'
      

        Activity

        Hide
        Andres Almiray added a comment -

        '' can be used now. The following additional qualifiers too: ':methods', ':factories', ':props'.
        For instance

        root.'MyCustomAddon' {
           controller = '*:methods'
           actions = '*'
        }
        

        results in all explicit methods from MyCustomAddon being added to controllers; all methods, props and nodes being added to actions (if actions is configured as an MVC member).

        Show
        Andres Almiray added a comment - ' ' can be used now. The following additional qualifiers too: ' :methods', ' :factories', ' :props'. For instance root.'MyCustomAddon' { controller = '*:methods' actions = '*' } results in all explicit methods from MyCustomAddon being added to controllers; all methods, props and nodes being added to actions (if actions is configured as an MVC member).

          People

          • Assignee:
            Andres Almiray
            Reporter:
            Andres Almiray
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: