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
/** | |
* Tables' border-radius + box-shadow playgroud | |
*/ | |
body{ | |
font:82.5% Arial, sans-serif; | |
margin:5px; | |
padding:0; | |
} | |
table{ | |
border:0; |
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
# -*- coding: utf-8 -*- | |
# Dead simple BEMHTML renderer concept via PyV8 (code.google.com/p/pyv8/) | |
import os | |
import PyV8 | |
PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
PAGE = os.path.join(PROJECT_ROOT, 'pages/page') |
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
/** | |
* Движек шаблонов (template engine). | |
* | |
* Синтаксис: | |
* <code> | |
* var tpl = "Время ожидания ответа составило бы %{var} миллиардов лет", | |
* data = {var: 80}; | |
* te.renderTpl(tpl, data, 1); | |
* </code> | |
*/ |
NewerOlder