简体   繁体   中英

in HAML what does {%= %} mean?

I see this line in a .html.haml file (RoR project)

.upload
  {%=o.name%}

What does it mean? it just prints the output of o.name? I mean, it is the same than:

.upload
  =o.name

Or does a funky parse.

Thanks!

我怀疑这是HAML语法的一部分,因此它可能在客户端站点上用于模板化或其他目的(如Stefan所提到的)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM