Convert Handlebars.js templates to ERB templates
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

At the moment I'm working on a clone of this project:

https://github.com/rigoneri/syte

His project is written in a mix of Python & Javascript. I'm going with the full Rails stack for now. I'd like someone to convert all of the templates in this directory from Handlebars.js to ERB:

https://github.com/rigoneri/syte/blob/master/syte/static/templates/

I'd like the conversion to handle variables properly. For example, on line 3 of the SoundCloud template, they use the with keyword to access the variables of user_profile as local variables. The converted ERB should correct that by prefixing all those variables properly. In this case, line 6 should read:

<a href="http://soundcloud.com/<%= user_profile.permalink %>" class="profile-avatar">

For now you can submit your answer as a pull request: https://github.com/farleyknight/po.rtfol.io/

Where do you want to the erb templates in your rails clone?
sguha over 6 years ago
Oh right, that directory is here: https://github.com/farleyknight/po.rtfol.io/tree/master/app/views/accounts
farleyknight over 6 years ago
I've already got a couple social networks, as you can see.
farleyknight over 6 years ago

Crowdsource coding tasks.

0 Solutions