I have a config file full of this....
- if current_page.include? "test_string_one"
- @total_index = 3
- @next_location = ../random_string/page0.html
- @next_name = title 2
- if current_page.include? "test_string_two"
- @total_index = 10
- @next_location = ../another_random_string/page0.html
- @next_name = title 3
Is there a cleaner way of writing this? Using Staticmatic.
I see there are filters available in haml. Should all this be in :ruby
filter?