Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,10 @@ __Advance setup__
__Use dictionary loader__

You may want to load template from other resource than file then this will be your
friend. h2o use `dict_loader()` for testing.
friend. h2o use `hash_loader()` for testing.

<?php
$loader = dict_loader(array(
$loader = hash_loader(array(
"index.html" => 'Hello {{ person }}'
));
$template = new H2o('index.html', array('loader' => $loader'));
Expand Down
Loading