2016-03-23 10 views
1

私はYeti Launchを使用していて、expressionsを使用して各ページのページ情報を表示したいとします。Foundation Zurb内で式を表示する方法

例えば、titleというページとそのページに固有のその他のコンテンツを表示したいとします。

ホームページは{title: "homepage"}ですが、私は基礎プロジェクトの印刷/表示方法を理解できません。ここで

は土台がプロジェクトフォルダ私のデータが格納されるべき

src 
    assets - /img/ - /js/ - /scss/ 
    data 
    layouts 
    pages 
    partials 
    styleguide 

を設定する方法

{{!-- This is the base layout for your project, and will be used on every page. --}} 
<!doctype html> 
<html class="no-js" lang="en"> 

<head> 
    <meta charset="utf-8" /> 
    <meta http-equiv="x-ua-compatible" content="ie=edge"> 
    <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
    <title>{{title}}</title> 
    <link rel="stylesheet" href="{{root}}assets/css/app.css"> 

</head> 
<script> 
    var context = {title:"Homepage | Hey this is working"}; 

</script> 

<body> 
    <div id="siteContainer" class="cover"> 
     <div class="row"> 
      <header> 
       <h1>Example</h1> 
      </header> 
     </div> 
     <div id="navigation"> 
      <!-- eo // navigation --> 
      <section id="contentWrapper"> 
       {{!-- Pages you create in the src/pages/ folder are inserted here when the flattened page is created. --}} {{> body}} 
      </section> 
      <!-- eo // section --> 
     </div> 
     <!-- eo // siteContainer --> 

     <script src="{{root}}assets/js/app.js"></script> 
</body> 

</html> 

私は私のホームページのファイルを持っているかですか?その特定のページにデータをプルするための呼び出しを表示または呼び出しするにはどうすればよいですか?

ありがとうございます!

答えて

関連する問題