include ../helpers/mixins
html
body
block menu
if menuID === 1
+menu(1)
block content
extends ../layouts/layout
block menu
- var menuID = 1;
block content
p Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
//- тут создаете миксин, который принимает аргумент и выводит по нему часть json.
+menu(menuID)
doctype 5
html
block link
-var selected = 'home'; //default
-var menu = { 'home': '/home', 'blog': '/blog', 'contact': '/contact' };
body
nav
ul
each val, key in menu
li
if selected === key
a.selected(href=val, title=key)= key
else
a(href=val, title=key)= key
extends parent
block link
-var selected = 'blog';
$(function(){
var navMain = $(".navbar-collapse");
navMain.on("click", "a", null, function () {
navMain.collapse('hide');
});
});
ctrl+shift+p
не видеть лишних строк:{
"ignored_packages":
[
"ActionScript",
"AppleScript",
"ASP",
"Batch File",
"C#",
"C++",
"Clojure",
"D",
"Erlang",
"Go",
"Graphviz",
"Groovy",
"Haskell",
"LaTeX",
"Lisp",
"Lua",
"Makefile",
"MATLAB",
"Objective-C",
"OCaml",
"Perl",
"Python",
"PyV8",
"R",
"Scala",
"ShellScript",
"TCL",
"Textile",
"Vintage"
],
}
$(function() {
$('div#fds img').each(function(i) {
$(this).delay((i++) * 500).fadeTo(1000, 1); })
});