Skip to content

Instantly share code, notes, and snippets.

@maki-t2nd
Created November 6, 2018 09:17
Show Gist options
  • Save maki-t2nd/8d6f1406d6536c9a66d3711d629aa08b to your computer and use it in GitHub Desktop.
Save maki-t2nd/8d6f1406d6536c9a66d3711d629aa08b to your computer and use it in GitHub Desktop.
get_renderedうまくいかないとき
<!-- BEGIN_MODULE Calendar_Month ctx="{{ym}}" -->
<div>
<div>
<!-- BEGIN_SetRendered id="stryear" -->{year}<!-- END_SetRendered -->
<!-- BEGIN_SetRendered id="strmonth" -->{month}<!-- END_SetRendered -->
<h3 class="acms-text-center"><a href="{monthUrl}">{month}月</a></h3>
<ul class="acms-text-center acms-list-inline">
<li><a href="{prevUrl}" class="acms-btn-flat" title="前月へ">«</a></li>
<li><a href="{yearUrl}" class="acms-btn-flat" title="年間カレンダーへ">{year}</a></li>
<li><a href="{nextUrl}" class="acms-btn-flat" title="次月へ">»</a></li>
</ul>
</div>
<table class="acms-table acms-table-bordered">
<thead>
<tr class="acms-text-center">
<!-- BEGIN weekLabel:loop -->
<td >{label}</td>
<!-- END weekLabel:loop -->
</tr>
</thead>
<tbody>
<!-- BEGIN week:loop -->
<tr class="acms-text-center">
<!-- BEGIN day:loop -->
<!-- BEGIN spacer -->
<td> </td>
<!-- END spacer -->
<!-- BEGIN none -->
<td><a class="date-<!-- GET_Rendered id="stryear" -->-<!-- GET_Rendered id="strmonth" -->-{day}">{day}</a></td>
<!-- END none -->
<!-- BEGIN link -->
<td><a class="date-<!-- GET_Rendered id="stryear" -->-<!-- GET_Rendered id="strmonth" -->-{day}">{day}</a></td>
<!-- END link -->
<!-- END day:loop -->
</tr>
<!-- END week:loop -->
</tbody>
</table>
</div>
<!-- END_MODULE Calendar_Month -->
@include("calendar.html", {"ym": "2018/11"})
@include("calendar.html", {"ym": "2018/12"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment