{"action":"created","issue":{"url":"https://api.github.com/repos/marko-js/marko/issues/233","repository_url":"https://api.github.com/repos/marko-js/marko","labels_url":"https://api.github.com/repos/marko-js/marko/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/marko-js/marko/issues/233/comments","events_url":"https://api.github.com/repos/marko-js/marko/issues/233/events","html_url":"https://github.com/marko-js/marko/issues/233","id":135201852,"number":233,"title":"Marko v3, error: Unmatched else statement ","user":{"login":"veggiemonk","id":5487021,"avatar_url":"https://avatars.githubusercontent.com/u/5487021?v=3","gravatar_id":"","url":"https://api.github.com/users/veggiemonk","html_url":"https://github.com/veggiemonk","followers_url":"https://api.github.com/users/veggiemonk/followers","following_url":"https://api.github.com/users/veggiemonk/following{/other_user}","gists_url":"https://api.github.com/users/veggiemonk/gists{/gist_id}","starred_url":"https://api.github.com/users/veggiemonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veggiemonk/subscriptions","organizations_url":"https://api.github.com/users/veggiemonk/orgs","repos_url":"https://api.github.com/users/veggiemonk/repos","events_url":"https://api.github.com/users/veggiemonk/events{/privacy}","received_events_url":"https://api.github.com/users/veggiemonk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-21T12:44:43Z","updated_at":"2016-02-21T16:12:08Z","closed_at":"2016-02-21T16:12:08Z","body":"The very basic project is at https://github.com/veggiemonk/marlow-test\r\n\r\n```\r\n❯ node .\r\n\r\n  Error: An error occurred while trying to compile template at path \"/home/veggiemonk/code/marlow-test/src/index.marko\". Error(s) in template:\r\n  1) Unmatched else statement\r\n  \r\n      at Compiler.compile (/home/veggiemonk/code/marlow-test/node_modules/marko/compiler/Compiler.js:108:25)\r\n      at Object.compileFile (/home/veggiemonk/code/marlow-test/node_modules/marko/compiler/index.js:86:25)\r\n      at loadFile (/home/veggiemonk/code/marlow-test/node_modules/marko/runtime/loader.js:84:34)\r\n      at load (/home/veggiemonk/code/marlow-test/node_modules/marko/runtime/loader.js:124:16)\r\n      at Object.load (/home/veggiemonk/code/marlow-test/node_modules/marko/runtime/marko-runtime.js:295:33)\r\n      at Object._callee2$ (server.js:22:22)\r\n      at tryCatch (/home/veggiemonk/code/marlow-test/node_modules/babel-regenerator-runtime/runtime.js:61:40)\r\n      at GeneratorFunctionPrototype.invoke [as _invoke] (/home/veggiemonk/code/marlow-test/node_modules/babel-regenerator-runtime/runtime.js:329:22)\r\n      at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/home/veggiemonk/code/marlow-test/node_modules/babel-regenerator-runtime/runtime.js:94:21)\r\n      at onFulfilled (/home/veggiemonk/code/marlow-test/node_modules/co/index.js:65:19)\r\n\r\n\r\n```\r\n\r\nThe basic Marko template, it was taken from one of the example: \r\n```html\r\n\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <title>Marko Demo</title>\r\n</head>\r\n<body>\r\n<h1>Marko Demo</h1>\r\n\r\nHello ${data.name}!\r\n\r\n<ul if=\"notEmpty(data.colors)\">\r\n    <li for=\"color in data.colors\">\r\n        $color\r\n    </li>\r\n</ul>\r\n<div else>\r\n    There are no colors!\r\n</div>\r\n\r\n</body>\r\n</html>\r\n```"},"comment":{"url":"https://api.github.com/repos/marko-js/marko/issues/comments/186851333","html_url":"https://github.com/marko-js/marko/issues/233#issuecomment-186851333","issue_url":"https://api.github.com/repos/marko-js/marko/issues/233","id":186851333,"user":{"login":"veggiemonk","id":5487021,"avatar_url":"https://avatars.githubusercontent.com/u/5487021?v=3","gravatar_id":"","url":"https://api.github.com/users/veggiemonk","html_url":"https://github.com/veggiemonk","followers_url":"https://api.github.com/users/veggiemonk/followers","following_url":"https://api.github.com/users/veggiemonk/following{/other_user}","gists_url":"https://api.github.com/users/veggiemonk/gists{/gist_id}","starred_url":"https://api.github.com/users/veggiemonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veggiemonk/subscriptions","organizations_url":"https://api.github.com/users/veggiemonk/orgs","repos_url":"https://api.github.com/users/veggiemonk/repos","events_url":"https://api.github.com/users/veggiemonk/events{/privacy}","received_events_url":"https://api.github.com/users/veggiemonk/received_events","type":"User","site_admin":false},"created_at":"2016-02-21T16:12:07Z","updated_at":"2016-02-21T16:12:07Z","body":"The template should be written like this:\r\n```html\r\n<ul if(notEmpty(data.colors)>\r\n    <li for(color in data.colors)>\r\n        $color\r\n    </li>\r\n</ul>\r\n<div else>\r\n    There are no colors!\r\n</div>\r\n```\r\nThanks @philidem for the answer on gitter."}}