quartzmo / email-landing-page

Bootstrap-based, Heroku-ready, easily customizable marketing landing page that integrates with MailChimp. Simple Sinatra server app.
http://landingpages.herokuapp.com
153 stars 77 forks source link

Use erb for rendering the index page and within the default Sinatra view... #1

Closed nickhammond closed 11 years ago

nickhammond commented 11 years ago

Just updated the index action to use the erb template renderer and with the Sinatra views path. It separates the assets from the views and sets the app up to have dynamic templates.

nickhammond commented 11 years ago

Love the project by the way :) I'm about to test 2 ideas and this was basically the same thing I was looking to build.

quartzmo commented 11 years ago

Nick, thanks for the pull request. I haven't personally had a need for dynamic content, but I guess you have one?

nickhammond commented 11 years ago

I guess it wasn't for the dynamic content but just to go with Sinatra convention more than anything. I liked having erb :index as opposed to opening and reading a file within an action. Makes it easier if anyone needed to add an additional view too like an about page or something. Also, if someone wanted to use HAML instead they could just modify that to haml :index too.

Thanks for the merge! I ended up building this project off of this http://gmail-mail-merge.herokuapp.com/ Still working on some testing and getting a real domain, it's a personal need that I have for some simple email automation to a group and without using a full CRM or anything. It'll tie into various contact stores and send over your SMTP server so the email always comes from you specifically.