Skip to content

Instantly share code, notes, and snippets.

@chinnurtb
Forked from arjan/gist:4450884
Created August 9, 2013 11:43
Show Gist options
  • Select an option

  • Save chinnurtb/6192991 to your computer and use it in GitHub Desktop.

Select an option

Save chinnurtb/6192991 to your computer and use it in GitHub Desktop.
Make each module and each site an Erlang (library) app.
This means that each module should be structured like this:
├── dispatch
├── ebin
├── lib
│   ├── css
│   ├── images
├── src
│   ├── actions
│   ├── controllers
│   ├── filters
│   ├── scomps
│   ├── services
│   ├── support
│   └── validators
├── templates
│   ├── phone
│   ├── tablet
│   ├── tests
│   └── text
├── tests
└── translations
└── template
This way, modules and sites compile with the rebar {subdirs} feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment