search for: faq_li_tag

Displaying 1 result from an estimated 1 matches for "faq_li_tag".

2008 Oct 16
1
Modularisation: Using helper generating HTML output vs. using partials
...39;'ve got a general question: when do I use helper and when I do use partials to modularise certain gui elements? For example: I''ve got a faq list. Each item can be folded and unfolded using ajax. FAQ foo -> question 1 -> question 2 -> question 3 So, I wrote a helper "faq_li_tag(args)" which takes the question and answer for parameters and generates the HTML output. But I also could have made a partial which creates the corresponding output. What''s the best solution? What are the criterias for this decision in general? Thank you very much! Best regards, m...