Last active
August 29, 2015 14:27
-
-
Save makevoid/2d76d1015e42984b7263 to your computer and use it in GitHub Desktop.
v alpha - 2 tabs synced UI+server SPA + blockchain git state
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # another idea - see index2 | |
| # when you code the code - a possible implementation gets built | |
| # when you code the class (interface, module, view wathever) | |
| # - a server is written to hit the view | |
| # - an implementation like this one - so only an editor like codemirror on 2 tabs synced | |
| class People | |
| def migrate | |
| end | |
| end | |
| ## ------------ | |
| People.migrate | |
| # ------------ | |
| GET / # - http request | |
| {} # - json body | |
| POST / | |
| {} # head | |
| {} # body | |
| POST / | |
| head: { | |
| antani: true | |
| } | |
| body: "< | |
| html | |
| >" | |
| POST /with_helper | |
| head: { | |
| antani: true | |
| } | |
| body do | |
| :html | |
| end | |
| # comments are comments |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment