<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakahashi_h</author_name>
  <author_url>https://blog.hatena.ne.jp/nakahashi_h/</author_url>
  <blog_title>websandbag ブログ</blog_title>
  <blog_url>https://blog.websandbag.com/</blog_url>
  <categories>
    <anon>pug</anon>
    <anon>php</anon>
  </categories>
  <description>pugでは、テンプレート内で変数を指定できます。 Interpolation – Pug ページ毎に変わる要素（title,keyword等）を作る時は、変数に変わる要素を入れて切り替えると言う事をすると思います。 その際、phpをはじめとしたサーバーサイドの値も反映できるようにしたい時があります。 今回は、そんな場合の対処方法を記載します。 要件 bodyタグに状態を示すクラスを追加します。 今回は、サーバサイドの状態に合わせて「is_active」というクラス名を指定するとします。 指定側 あらかじめ、php側で$isActiveに「true」を指定しています。 ダブルコーテーションでタグ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.websandbag.com%2Fentry%2F2018%2F11%2F22%2F173625&quot; title=&quot;【pug】pugの変数(var)にPHPタグを使う方法 - websandbag ブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/n/nakahashi_h/20181025/20181025133159.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-11-22 17:36:25</published>
  <title>【pug】pugの変数(var)にPHPタグを使う方法</title>
  <type>rich</type>
  <url>https://blog.websandbag.com/entry/2018/11/22/173625</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
