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
system: | |
default: | |
user: | |
layout: eZDemoBundle::pagelayout.html.twig | |
login_template: eZDemoBundle:Security:login.html.twig | |
location_view: | |
full: | |
mainsite_frontpage: | |
controller: "EzFinlandMainSiteBundle:Demo:showBlogPost" |
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
# to find out the configuration commands, run: h2o --help | |
user: www-data | |
hosts: | |
"example.com": | |
listen: | |
host: xx.xx.xx.xx | |
port: 443 |
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
cat /var/log/h2o/access-log | wc -l | |
18070 | |
cat /var/log/h2o/access-log | grep "HTTP/1" | wc -l | |
4782 | |
cat /var/log/h2o/access-log | grep "HTTP/2" | wc -l | |
13288 |
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
Log from: [22/Jun/2015:17:42:59 +0200] - [24/Jun/2015:11:17:31 +0200] | |
cat /var/log/h2o/access-log | wc -l | |
18070 | |
cat /var/log/h2o/access-log | grep "HTTP/1" | wc -l | |
4782 | |
cat /var/log/h2o/access-log | grep "HTTP/2" | wc -l | |
13288 |
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
<script src="js/tags/ymap.tag" type="riot/tag"></script> | |
<script src="https://cdn.jsdelivr.net/g/[email protected](riot.min.js+compiler.min.js)"></script> | |
<script src="http://api-maps.yandex.ru/2.0-stable/?load=package.full&lang=en-US" type="text/javascript"></script> | |
<script> | |
riot.mount('*'); | |
</script> | |
<ymap zoom="5" center="0,40"></ymap> |
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
<ymap> | |
<div id="ymap{{ opts.mapid }}"></div> | |
<style scoped> | |
div { | |
width: 320px; | |
height: 240px; | |
} | |
</style> |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Riot.js Yandex Map Component</title> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<!--[if lt IE 9]> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.0.5/es5-shim.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script> | |
<script>html5.addElements('ymap')</script> |
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
# Settings for caching in parts of Bolt. | |
# - config: Caches the parsed .yml files from /app/config. It's updated | |
# immediately when one of the files changes on disk. There | |
# should be no good reason to turn this off. | |
# - templates: Caches rendered templates. | |
# - request: Caches entire rendered pages like '/page/about', but only on | |
# GET requests. | |
# - duration: The duration (in minutes) for the 'templates' and 'request' | |
# options. default is 10 minutes. Note that the duration is set | |
# on storing the cache. By lowering this value you will not |
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
$twig->addExtension(new Janit\Twig\RiotRendererExtension()); |
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
class RiotRendererExtension extends \Twig_Extension | |
{ | |
public function getName() { | |
return "riot_render"; | |
} | |
public function getFunctions() { | |
return array( | |
'riot_render' => new \Twig_Function_Method($this, 'riotRenderer', | |
array('is_safe' => array('html')) | |
) |
OlderNewer