Last active
December 11, 2015 08:18
-
-
Save fnordo/4572359 to your computer and use it in GitHub Desktop.
This file contains 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
################## MARKUP HTML LAYOUT ################### | |
<body> | |
<div id="site" class="container"> | |
<div id="layout-full"> | |
<div id="page-container" class="container"></div> | |
</div> | |
<div id="layout-2-col" class="row"> | |
<div id="sidebar-2-col" class="span6"></div> | |
<div id="content-2-col" class="span12"></div> | |
</div> | |
</div> | |
</body> | |
######################################################## | |
############### AppEngineController ######################### | |
/* | |
* Der AppEngine-EditView erbt von einer ColumnView, welche genau wie die ChaplinPageView aussieht, | |
* nur dass sie als container-attribut nicht '#page-container', sondern '#content-2-col' hat. | |
* Die 'SidebarView' ist eine ChaplinPageView mit container: '#sidebar-2-col" | |
*/ | |
module.exports = class AppengineController extends Controller | |
edit: (params) -> | |
@sidebar = new SidebarView | |
/* | |
* wenn man .render() hier NICHT aufruft, bleibt das zeug sichtbar, wenn man mit dem backbutton | |
* wieder auf zB die pages-seite zurückgeht | |
*/ | |
@sidebar.render() | |
@app = new App {id: params.id} | |
@view = new EditView model: @app | |
@app.fetch() | |
@view.render() // auch hier das selbe prob (siehe oben) | |
############################################################# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment