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
{% extends parent %} | |
{% block content %} | |
the content of this page | |
{% endblock %} |
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
<html> | |
<head> | |
<title>The Alternate Layout</title> | |
</head> | |
<body> | |
<header> | |
Alternate header | |
</header> | |
<div id="content"> | |
{% block alternate_content %} |
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
<html> | |
<head> | |
<title>Snippet example</title> | |
</head> | |
<body> | |
<header> | |
</header> | |
<div id="content"> | |
<!-- Loop on products --> | |
{% for product in contents.products %} |
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
+- Views | |
+- layout | |
+- application | |
+- mysite | |
+- index | |
+- first page | |
+- second page |
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
@import "compass/reset" | |
@import "compass/typography/vertical_rhythm" | |
// Main baseline | |
$base-font-size: 20px | |
$base-line-height: 30px | |
// Alternative baseline | |
$alt-font-size: 10px | |
$alt-line-height: 15px |
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
<html> | |
<body> | |
<div class="topbar">A top bar</div> | |
<div class="content"> | |
Content ... | |
</div> | |
</body> | |
</html> |
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
// Int64.js | |
// | |
// Copyright (c) 2012 Robert Kieffer | |
// MIT License - http://opensource.org/licenses/mit-license.php | |
/** | |
* Support for handling 64-bit int numbers in Javascript (node.js) | |
* | |
* JS Numbers are IEEE-754 binary double-precision floats, which limits the | |
* range of values that can be represented with integer precision to: |
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
(reg-event-fx | |
:http-request | |
(fn [{:keys [db]} [_ {:keys [method uri on-success on-failure params]}]] | |
{:db db | |
:http-xhrio {:method method | |
:uri uri | |
:params params | |
:on-success on-success | |
:on-failure on-failure | |
:headers {"X-CSRF-Token" csrf-token} |
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
(re-frame/reg-fx | |
::send-several-ws | |
(fn [[websocket payloads]] | |
(doseq [p payloads] | |
(.send websocket (js/JSON.stringify (clj->js p)))))) | |
(re-frame/reg-event-fx | |
::subscribe | |
(fn [{:keys [db]} [_ subscription-id query variables callback-event initial-payload :as event]] |