Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 什么语言使用[%%]_Javascript_Html - Fatal编程技术网

Javascript 什么语言使用[%%]

Javascript 什么语言使用[%%],javascript,html,Javascript,Html,我正在学习编程,并在网站上检查代码。我学到了一些东西,但我不认识这段代码中的[%and%]。这些东西是什么 <div class="comment comment_inner"> [% if (data.comment.id) { %] <a href="#" class="collapse_toggle"></a> [% } %] <div class="by"> [% if (data.view.hasProfilePicture()

我正在学习编程,并在网站上检查代码。我学到了一些东西,但我不认识这段代码中的[%and%]。这些东西是什么

<div class="comment comment_inner">
[% if (data.comment.id) { %]
  <a href="#" class="collapse_toggle"></a>
[% } %]

<div class="by">
  [% if (data.view.hasProfilePicture()) { %]
    <a href="[%= data.comment.user.profile_url %]">
      <img src="[%= data.comment.user.profile_image %]" alt="[%= data.comment.user.display_name %]" />
    </a>
  [% } %]

[% if (data.comment.user.membership && data.comment.user.membership.short_bio) { %]
    <div class="name_container has_flair">
  [% } %]

[%if(data.comment.id){%]
[% } %]
[%if(data.view.hasProfilePicture()){%]
[% } %]
[%if(data.comment.user.membership&&data.comment.user.membership.short_bio){%]
[% } %]

它可以替换为任何其他非字母数字字符和非打印字符请参见此处有关Ruby和Rails的简单内容

这看起来像一种模板语言,您应该更多地介绍这个项目,您正在使用哪些库等,原因是什么?谢谢您的回复。我是新来的,但我想学习如何写评论部分。这是来自theverge.com上的评论部分。它可以是任何允许定制delimeters的东西,比如mustache.js…专有垃圾templates@gofastrocket,这不是一个好的初学者学习资源,试着在其他地方学习,你想要什么,然后带着问题回来,在学习时,是的