{"action":"closed","issue":{"url":"https://api.github.com/repos/bobthecow/mustache.php/issues/264","labels_url":"https://api.github.com/repos/bobthecow/mustache.php/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/bobthecow/mustache.php/issues/264/comments","events_url":"https://api.github.com/repos/bobthecow/mustache.php/issues/264/events","html_url":"https://github.com/bobthecow/mustache.php/issues/264","id":95577976,"number":264,"title":"Blocks pragma should use lazy evaluation","user":{"login":"damyon","id":758959,"avatar_url":"https://avatars.githubusercontent.com/u/758959?v=3","gravatar_id":"","url":"https://api.github.com/users/damyon","html_url":"https://github.com/damyon","followers_url":"https://api.github.com/users/damyon/followers","following_url":"https://api.github.com/users/damyon/following{/other_user}","gists_url":"https://api.github.com/users/damyon/gists{/gist_id}","starred_url":"https://api.github.com/users/damyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damyon/subscriptions","organizations_url":"https://api.github.com/users/damyon/orgs","repos_url":"https://api.github.com/users/damyon/repos","events_url":"https://api.github.com/users/damyon/events{/privacy}","received_events_url":"https://api.github.com/users/damyon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-17T03:38:51Z","updated_at":"2015-08-15T15:41:57Z","closed_at":"2015-08-15T15:41:57Z","body":"On the blocks pragma page you say: \"Blocks are currently implemented in the compiler to be strictly evaluated while other implementations have chosen lazy evaluation. This means that some features available in other implementations are not available in Mustache.php\". \r\n\r\nThe fact that it is listed as a caveat and behaves differently to other implementations is a IMO a good reason to change it so this example does work.\r\n\r\nMy personal reasons are:\r\n\r\nWe have started using Mustache.php and Mustache.js in Moodle (www.moodle.org). We are planning on creating a large set of reusable templates - but in order to make the generic templates useful - we really need this template inheritance feature working identically in JS and PHP. \r\n\r\nSo - I am opening this issue, and will attach a patch soon."}}