Skip to content

Instantly share code, notes, and snippets.

@MikSDigital
Created February 10, 2016 18:06
Show Gist options
  • Save MikSDigital/7c3a6f32e7fbe2ee5dcd to your computer and use it in GitHub Desktop.
Save MikSDigital/7c3a6f32e7fbe2ee5dcd to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="http://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,900" rel="stylesheet" type="text/css">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<title>Rajamaki new</title>
<!--include ./includes/_home_head_section_scripts.html-->
</head>
<body>
<div id="container">
<li class="active"><a href="option 1"></a></li>
<li class="active"><a href="option 2"></a></li>
<li><a href="option 3"></a></li>
</div>
<!--include ./includes/_home_page_body.html-->
<!--include ./includes/_footer.html-->
</body>
</html>
doctype html
html(lang="en" class="no-js")
head
meta(charset='utf-8')
meta(http-equiv="X-UA-Compatible" content="IE=edge,chrome=1")
meta(name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1")
each val in ['http://fonts.googleapis.com/css?family=Montserrat:400,700','http://fonts.googleapis.com/css?family=Lato:300,400,700,900',"https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"]
link(href=val rel='stylesheet' type='text/css')
title Rajamaki new
//include ./includes/_home_head_section_scripts.html
body
#container
-var list=[]
- list.push({status: "active", text: "option 1"})
- list.push({status: "active", text: "option 2"})
- list.push({status: "", text: "option 3"})
each item in list
li(class="#{item.status}")
a(href=item.text)
//include ./includes/_home_page_body.html
//include ./includes/_footer.html
@MikSDigital
Copy link
Author

use array and loop in jade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment