mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-21 15:40:58 +00:00
1 line
1.7 KiB
JSON
1 line
1.7 KiB
JSON
[{"user_id": 38645, "stars": [], "topic_id": 42861, "date_created": 1311847838.8763821, "message": "\nI tried using this (https://gist.github.com/1103389) in config.rb\n\npage \"/path.html\" do\n @myvar = \"foo\"\nend\n\n...but am finding that all that is returned to the browser when viewing /path.html is the variable, and the page itself is not rendered. I.e. literally, all I'll see is \"foo\" on a blank page. ", "group_id": 10410, "id": 1737855}, {"user_id": 7586, "stars": [], "topic_id": 42861, "date_created": 1311863956.4128389, "message": "That syntax is only valid with the 2.0 betas (releasing next week). I'm afraid this feature isn't supported by the current 1.x release.", "group_id": 10410, "id": 1739588}, {"user_id": 38645, "stars": [], "topic_id": 42861, "date_created": 1311919975.5740089, "message": "Thanks, I am using 2.0.0.rc3. I can wait till next week though, if it'll work then.", "group_id": 10410, "id": 1745454}, {"user_id": 7586, "stars": [], "topic_id": 42861, "date_created": 1312263342.5813479, "message": "You could try the very latest beta. Hopefully the final will be out within the week.", "group_id": 10410, "id": 1772833}, {"user_id": 13961, "stars": [], "topic_id": 42861, "date_created": 1319186224.834908, "message": "Is there a way to make variables global to all the pages?", "group_id": 10410, "id": 2398935}, {"user_id": 7586, "stars": [], "topic_id": 42861, "date_created": 1319214825.362664, "message": "Then access it in templates: <%= settings.my_var %>", "group_id": 10410, "id": 2401423}, {"user_id": 7586, "stars": [], "topic_id": 42861, "date_created": 1319214810.5872409, "message": "Add it in the config: \"set :my_var, 'my_value'\"", "group_id": 10410, "id": 2401419}] |