<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryster</author_name>
  <author_url>https://blog.hatena.ne.jp/ryster/</author_url>
  <blog_title>覇王色を求めて</blog_title>
  <blog_url>https://rys.hatenablog.com/</blog_url>
  <categories>
    <anon>Symfony2</anon>
    <anon>Twig</anon>
    <anon>PHP</anon>
  </categories>
  <description>昼間にTwigローダーを処理中に変更し、文字列をTwigに渡してリソースを生成する方法を書いたけど、 単純なテンプレート機能として使うのであれば全然問題ないが、form_widgetとか使う場合だと昼間の方法だと無理だった。とりあえず文字列ベースのTwigLoaderでform_widgetとかも使えるバンドルを作ったので置いておきます。 Twigの内部処理の勉強にかなりなったなーryster/HaouTwigBundle · GitHub利用方法は下記の通り。 // ソース $source = '{% form_theme form &quot;AcmeDemoBundle:Form:form_lay…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frys.hatenablog.com%2Fentry%2F2012%2F05%2F30%2F060722&quot; title=&quot;Symfony2でTwigを文字列から読み込みたい - 覇王色を求めて&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>2012-05-30 06:07:22</published>
  <title>Symfony2でTwigを文字列から読み込みたい</title>
  <type>rich</type>
  <url>https://rys.hatenablog.com/entry/2012/05/30/060722</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
