ruby on rails - Best practices when including/using a "partial view"? -


The modern web frameworks such as Rail and Symphony involve partially or the idea of ​​partial ideas is well documented and recommended.

I am facing a lot of trouble recently to decide how much design will be involved in partially.

It's hard to understand, but I want to know what other people do, template. Do you only display the data and keep it in the template or you partially put all the styling and positioning codes and just include it like this.

I think my question is, what is your thinking process when deciding to partial and when you use it in your code, and when you decide to use any one How much do you put in partially

I partially use pieces of visual code which is used in more than one location. If the code is being duplicated or used again in many places, then it is a prominent candidate who will be drawn and partially placed.

As far as the styling code is, all of them remain in their css files


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -