阅读背景:

以这种方式使用partials是错误的吗?

来源:互联网 

Ok so I am developing a website in rails right now. Basically it is a static site (but I am using rails because eventually my client wants blog and post functionality added in), which has a bunch of different sections with different articles in each section. Each article is designed with it's own html structure, some have tables, divs, font coloring, etc. so storing these articles as text in the database doesn't make sense. However, it also didn't seem to make sense to have an entirely separate html file for each article in each section when they'r parent element is going to have the same common structure (what I mean by this, is each section on the site, like about, or publications, are going to have they're own unique layout, however, every article belonging to a given section will be placed in the same div as their sister articles. Ok so I am developing a website in rails right




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: