官术网_书友最值得收藏!

Getting ready

To get ready, download the starter code for this chapter, and refer to this chapter's starter code in the folder titled chapter03-start. Open the app/partial/_nav.ejs file, which is already saved with its final code. The reason for this is to have a working navbar with links to all the recipes used in this chapter.

Note that when including the .ejs files in HTML, you can just call the filename. There is no need to use the .ejs  extension. You can see plenty of examples of this in the app/partial/_nav.ejs anchor tags.

It is also important to note that our Gruntfile.js is somewhat different than the one in the preceding chapter. This time, you will need to manually run grunt copy to copy all the necessary JS dependencies. However, this needs to be done only once. Then, later on, you need to run grunt copy only when you change your bower_components, which will probably not happen very often.

Also, to compile SCSS into CSS, you can run grunt sass. To both watch and compile changes, you can still use grunt or grunt watch.

主站蜘蛛池模板: 离岛区| 瑞金市| 河西区| 中西区| 将乐县| 香港 | 弋阳县| 金坛市| 六枝特区| 栾川县| 宝鸡市| 若羌县| 海门市| 康马县| 勐海县| 九龙城区| 玛纳斯县| 全南县| 丰城市| 吉安县| 历史| 杭锦后旗| 荣成市| 海盐县| 杭锦后旗| 崇礼县| 石河子市| 孟连| 仁布县| 常宁市| 霍林郭勒市| 扎赉特旗| 宁南县| 新宁县| 和龙市| 旬邑县| 徐水县| 赣榆县| 巴东县| 兴仁县| 体育|