<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tomcky</author_name>
  <author_url>https://blog.hatena.ne.jp/tomcky/</author_url>
  <blog_title>Tomcky's blog</blog_title>
  <blog_url>https://tomcky.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Twig</anon>
  </categories>
  <description>現在日付が返ってきます。 {{ null|date(&quot;Y/m/d&quot;) }} {# 今日の日付が結果として返ってくる #} もし null だったときに空文字が表示されることを期待するなら、以下のようにしましょう。 {{ hoge_date is empty ? &quot;&quot; : hoge_date|date(&quot;m/d/Y&quot;) }} {# hoge_dateがnullなら空文字を表示 #} これについてはドキュメントにも記載されています。 twig.symfony.com</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftomcky.hatenadiary.jp%2Fentry%2F20200322%2F1584867744&quot; title=&quot;【Twig】dateフィルターにnullを渡すとどうなるか - Tomcky&amp;#39;s blog&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>2020-03-22 18:02:24</published>
  <title>【Twig】dateフィルターにnullを渡すとどうなるか</title>
  <type>rich</type>
  <url>https://tomcky.hatenadiary.jp/entry/20200322/1584867744</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
