start new:
tmux
start new with session name:
tmux new -s myname
| Server { | |
| Port = 80 | |
| SourceRoot = /Users/dan/hhvm-test/public/ | |
| } | |
| VirtualHost { | |
| * { | |
| Pattern = .* | |
| RewriteRules { | |
| * { |
| <?php | |
| require 'src/Mustache/Autoloader.php'; | |
| Mustache_Autoloader::register(); | |
| $m = new Mustache_Engine([ | |
| 'partials' => [ | |
| 'header' => '<title>{{$title}}Default title{{/title}}</title>', | |
| 'base' => '<html>{{$header}}{{/header}}{{$content}}{{/content}}</html>' | |
| ], |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| require 'src/Mustache/Autoloader.php'; | |
| Mustache_Autoloader::register(); | |
| $m = new Mustache_Engine([ | |
| 'partials' => [ | |
| ], | |
| ]); |
| require 'mustache' | |
| output = Mustache.render("<h1>{{{blah}}</h1>", :blah=> "hello world!") | |
| puts output | |
| # => | |
| #/Users/dmiller/.rbenv/versions/1.9.2-p180/lib/ruby/gems/1.9.1/gems/mustache-0.99.5/lib/mustache/parser.rb:264:in `error': Unclosed tag (Mustache::Parser::SyntaxError) | |
| # Line 1 | |
| # <h1>{{{blah}}</h1> | |
| # ^ |
| commit 0c41732a7ca14b15437f115c51b06e829988f048 | |
| Author: Dan Miller <[email protected]> | |
| Date: Fri Oct 3 16:27:06 2014 +0000 | |
| Add config-scan-dir option | |
| diff --git a/hphp/runtime/base/program-functions.cpp b/hphp/runtime/base/program-functions.cpp | |
| index b97e086..ba803f6 100644 | |
| --- a/hphp/runtime/base/program-functions.cpp | |
| +++ b/hphp/runtime/base/program-functions.cpp |
| hhvm.debugger.enable_debugger = true | |
| hhvm.debugger.enable_debugger_server = true | |
| hhvm.debugger.port = 8089 | |
| hhvm.debugger.default_sandbox_path = /var/www/ | |
| hhvm.debugger.startup_document = /var/www/index.php | |
| hhvm.sandbox.sandbox_mode = true |
| <?php | |
| function add(int $a, int $b): int { | |
| myLog($a + $b); | |
| return $a + $b; | |
| } |
| <?php | |
| declare(strict_types=1); | |
| function myLog(string $message): string { | |
| return $message; | |
| } | |
| function add(int $a, int $b): int { | |
| myLog($a + $b); | |
| return $a + $b; |