go-aah / aah

A secure, flexible, rapid Go web framework
https://aahframework.org
MIT License
689 stars 35 forks source link

Make aah anatomy configurable #152

Open jeevatkm opened 6 years ago

jeevatkm commented 6 years ago

One of the aah user started the conversation on gitter improving aah anatomy.

In general aah directories structure is simple and effective, it make sense in most scenarios. However it is still fixed layout. I thought through; how can I make it possible for aah users to customize their application structure per their need, when needed.

I believe making aah anatomy configurable via aah.project is right way to go and its flexible in every aspect -

# aah anatomy made configurable :)
# Directories are relative to application base directory.
anatomy {
  dir {
    app = "app"
    config = "config"
    i18n = "i18n"
    views = "views"
    static = "static"    
  }
}

So this way aah user can organize the structure they need.

jeevatkm commented 5 years ago

I'm planning to take it further on aah anatomy configurable approach. Will update the spec once I have a design in place.