{"action":"created","issue":{"url":"https://api.github.com/repos/mixu/markdown-styles/issues/22","labels_url":"https://api.github.com/repos/mixu/markdown-styles/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/mixu/markdown-styles/issues/22/comments","events_url":"https://api.github.com/repos/mixu/markdown-styles/issues/22/events","html_url":"https://github.com/mixu/markdown-styles/issues/22","id":94034146,"number":22,"title":"using meta.json","user":{"login":"parmentelat","id":4519227,"avatar_url":"https://avatars.githubusercontent.com/u/4519227?v=3","gravatar_id":"","url":"https://api.github.com/users/parmentelat","html_url":"https://github.com/parmentelat","followers_url":"https://api.github.com/users/parmentelat/followers","following_url":"https://api.github.com/users/parmentelat/following{/other_user}","gists_url":"https://api.github.com/users/parmentelat/gists{/gist_id}","starred_url":"https://api.github.com/users/parmentelat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parmentelat/subscriptions","organizations_url":"https://api.github.com/users/parmentelat/orgs","repos_url":"https://api.github.com/users/parmentelat/repos","events_url":"https://api.github.com/users/parmentelat/events{/privacy}","received_events_url":"https://api.github.com/users/parmentelat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-09T12:23:25Z","updated_at":"2015-07-09T13:58:27Z","closed_at":null,"body":"Hi there\r\n\r\nFirst off, many thanks for putting this together ! Looks like a really cool idea and I got my micro website up and running in an eye blink :)\r\n\r\nI'm at the point where I'd need to leverage this meta.json business.\r\nIt first took me some time to figure I had to install it inside the input/ directory\r\nafter I instrumented the code I can see now that my file is read all right, but the corresponding {{foo}} replacements do not take place, and I am trying to figure out what it is that I do wrong\r\n\r\nI guess there is some confusion in my mind as to what is expected in that dictionary. The doc at https://github.com/mixu/markdown-styles#metajson explains how to define variable repoUrl for files under input/foo; what about files at the toplevel right in input/ ?\r\n\r\nI have tried various tricks for defining 'bar' like\r\n{\r\n  \"\" : { 'bar' : 'value'},\r\n \".\" : { 'bar' : 'value'},\r\n 'bar' : 'value',\r\n'input' : { 'bar' : 'value'},\r\n}\r\n\r\nbut apparently to no avail, the occurrences of {{bar}} all come up empty; \r\nI can feel there is something I do just wrong but I can't spot it, can you please help ?\r\n\r\n---\r\nBesides, given this scoping mechanism, I would fancy there should be a means to define a given variable at different levels of the filesystem tree, with the most precise (the longest prefix) taking precedence, is it the case right now ? \r\nI have net yet taken the step of splitting my inputs into subdirs, but if that feature was working as I describe I might go down this road later on.\r\n\r\nThanks again in any case "},"comment":{"url":"https://api.github.com/repos/mixu/markdown-styles/issues/comments/119985140","html_url":"https://github.com/mixu/markdown-styles/issues/22#issuecomment-119985140","issue_url":"https://api.github.com/repos/mixu/markdown-styles/issues/22","id":119985140,"user":{"login":"parmentelat","id":4519227,"avatar_url":"https://avatars.githubusercontent.com/u/4519227?v=3","gravatar_id":"","url":"https://api.github.com/users/parmentelat","html_url":"https://github.com/parmentelat","followers_url":"https://api.github.com/users/parmentelat/followers","following_url":"https://api.github.com/users/parmentelat/following{/other_user}","gists_url":"https://api.github.com/users/parmentelat/gists{/gist_id}","starred_url":"https://api.github.com/users/parmentelat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parmentelat/subscriptions","organizations_url":"https://api.github.com/users/parmentelat/orgs","repos_url":"https://api.github.com/users/parmentelat/repos","events_url":"https://api.github.com/users/parmentelat/events{/privacy}","received_events_url":"https://api.github.com/users/parmentelat/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T13:58:27Z","updated_at":"2015-07-09T13:58:27Z","body":"OK, I had that right; but...\r\nIf I run\r\n\r\n    generate-md --input markdown\r\n\r\nand I have an input file in `markdown/index.md`, what would be projectName key in this case ? As I said, I have tried '.', '', 'markdown', and nothing seems to be working..\r\n\r\nthanks !"}}