Github user nickva commented on the issue:

    https://github.com/apache/couchdb-chttpd/pull/144
  
    @kxepal if we have a new feature say geo, we'd add a function it would 
check of config option or the presence of a plugin. 
    
    For example:
    
    ```
    get_features() ->
        Features = [
            check_geo_enabled(),
            check_other()
        ],
        [Feature || {Feature, true} <- Features].
    
    
    check_geo_enabled() ->
        {<<"geo">>, config:get_boolean("geo_module", "enabled", false)}.
    
    check_other() ->
        {<<"other">>, code:which(other_module) =/= non_existing}.
    ```
    Could eventually become a fancier implementation where some components can 
post their features to a special application or API, and this would read from 
that.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to