Passing data to Javascripts through data attributes looks like an especially useful solution to my problem: I'm intending to use this technique to dynamically generate content for multiple popovers.
But I'm left with this question: how is the content file itself set up? As a partial in the same directory as layout referring to it?
Passing data to Javascripts through data attributes looks like an especially useful solution to my problem: I'm intending to use this technique to dynamically generate content for multiple popovers.
But I'm left with this question: how is the content file itself set up? As a partial in the same directory as layout referring to it?