I have been making a little search box that lets you select an article and then shows you the accessories available for that product. I have been just getting the basic info from the server and building the elements through js, but this doesn't seem to be the best solution. For one thing, I can't seem to get the price straight in a controller, as all the logic is in a template for some reason.
Shoud I be building the blocks on the server and sending that to my js callback ? Are there better solutions ?