I am a developer, but not yet a web developer. I am looking for a website builder like Wix, Wordpress, or Squarespace that I can self-host. The idea is that a web designer, or even myself, should be able to drag-and-drop edit the static pages, but the pages that are app-like should be programmed custom (while hooking into the style info of the drag and dropped static pages). My preference would be to code in Ruby or Python (and to avoid PHP).
What options are there to have a drag-and-drop editable website with some pages/parts that are app (custom coded)?
This will not be a typical ecommerce or blog app, hence the need for custom code.