<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shimooka</author_name>
  <author_url>https://blog.hatena.ne.jp/shimooka/</author_url>
  <blog_title>Do You PHP はてブロ</blog_title>
  <blog_url>https://shimooka.hateblo.jp/</blog_url>
  <categories>
    <anon>jsviews</anon>
  </categories>
  <description>JavaScript製でjQuery非依存なテンプレートエンジンであるJsRender/JsViewsを使ったチュートリアルを書いてみようと思います。 以前に書いたエントリJsViews入門 - Do You PHP はてなも参照してください。 今回やること JsViewsでHTML要素の属性値をデータリンクさせた変数の値を使ってトグルさせる コード &lt;html&gt; &lt;body&gt; &lt;!-- レンダリング結果を表示するスペース --&gt; &lt;div id=&quot;result&quot;&gt;&lt;/div&gt; &lt;style type=&quot;text/css&quot;&gt; &lt;!-- .label { font-weight: bold; }…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshimooka.hateblo.jp%2Fentry%2F20150401%2F1427881477&quot; title=&quot;JsViewsチュートリアル - HTML要素の属性値のトグル - Do You PHP はてブロ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-04-01 18:44:37</published>
  <title>JsViewsチュートリアル - HTML要素の属性値のトグル</title>
  <type>rich</type>
  <url>https://shimooka.hateblo.jp/entry/20150401/1427881477</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
