{"issue":{"title":"Can I use haml for render variables?","milestone":null,"user":{"id":5664,"login":"mbavio","url":"https://api.github.com/users/mbavio","avatar_url":"https://secure.gravatar.com/avatar/b827ecd1c6f54af0be4a762de2202214?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b827ecd1c6f54af0be4a762de2202214"},"created_at":"2011-12-19T18:57:03Z","labels":[],"state":"open","updated_at":"2011-12-19T18:57:03Z","id":2604145,"html_url":"https://github.com/infbio/haml_assets/issues/6","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":null,"body":"So I'm using this gem to do haml backbone templates.\r\n\r\nWhat I'm not being able to do is to print variables in the haml engine.\r\n\r\nSuppose I have a dog_type variable being set by the view call to the template.\r\n\r\nIn my template, if I do this:\r\n\r\n<%= dog_type %>\r\n\r\nwhich is using ejs engine to print the variable, it works like charm. But if I put:\r\n\r\n= dog_type\r\n\r\nit generates a haml error, like if the variable wouldnt exist.\r\n\r\nCan I actually do the thing that I'm requesting? I really like the idea of using rails helpers on my templates, so I love the idea of using haml assets!","number":6,"url":"https://api.github.com/repos/infbio/haml_assets/issues/6","comments":0,"assignee":null},"action":"opened"}