Rails 请问一种奇怪的写法是怎么回事

hmilym · 2014年11月12日 · 最后由 debugger 回复于 2014年11月13日 · 2007 次阅读

<% set_view [:summary] do %>

{if defined('selected_codes')} {for code in selected_codes} {var rid = code.rid} .... {if !schedules || schedules.length==0} .... {/if} {for schedule in schedules} ... {/for} {if code.code_id > 0} ... {else} ${code.label} {/if} {/for} {/if} <%end%>

此段代码在一个 rhtml 文件中,请问这是什么东东,咋么用?谢谢

"In the new rails 3.0 .rhtml files will be unsupported. .html.erb is the new standard." 这个是 10 年的回复……

LZ 淘到文物了。

对不起,我忍不住笑出来了……

这是前端模板吧?

古董吗?

需要 登录 后方可回复, 如果你还没有账号请 注册新账号