RIOT.JS - Biểu thức
RIOT js sử dụng {} để xác định các biểu thức. RIOT js cho phép các loại biểu thức sau.
- Simple Expression - Xác định một biến và sử dụng trong thẻ. 
<customTag>
   <h1>{title}</h1>
   <script>
      this.title = "Welcome to TutorialsPoint.COM";
   </script>
</customTag>- Evaluate Expression - Đánh giá một biến khi sử dụng trong một hoạt động. 
<customTag>
   <h2>{val * 5}</h2>
   <script>
      this.val = 4;
   </script>
</customTag>- Get value from Options object - Để lấy giá trị được truyền cho thẻ thông qua các thuộc tính. 
Thí dụ
Sau đây là ví dụ đầy đủ về các khái niệm trên.
customTag.tag
<customTag>
   <h1>{title}</h1>
   <h2>{val * 5}</h2>
   <h2>{opts.color}</h2>
   <script>
      this.title = "Welcome to TutorialsPoint.COM";
      this.val = 4;
   </script>
</customTag>index.htm
<!DOCTYPE html>
<html>
   <head>
      <script src = "https://cdnjs.cloudflare.com/ajax/libs/riot/3.13.2/riot+compiler.min.js"></script>
   </head>
   <body>
      <customTag color="red"></customTag>
      <script src = "customTag.tag" type = "riot/tag"></script>
      <script>
         riot.mount("customTag");
      </script>
   </body>
</html>Điều này sẽ tạo ra kết quả sau: