Freemarker Template Quiz

Question 1 (1 Points)
เมื่อต้องการแสดงข้อความเฉพาะเมื่อตัวแปร `isEmpty` มีค่าเป็น `true`, ควรใช้ directive ใด?
    

Question 2 (1 Points)
เมื่อต้องการใส่ค่าเริ่มต้นให้กับตัวแปรที่อาจไม่มีใน model ควรใช้...
    

Question 3 (1 Points)
Directive ใดใน Freemarker ที่ใช้สำหรับการสร้าง macro?
    

Question 4 (1 Points)
คำสั่งไหนที่สามารถใช้เพื่อแปลงข้อมูลเป็น string ใน Freemarker?
    

Question 5 (1 Points)
แท็กไหนที่ใช้สำหรับการรวม templates อื่นเข้ามาใน template หลัก?**
    

Question 6 (1 Points)
ควรใช้ directive ใดเมื่อต้องการพิมพ์ค่าออกมาโดยไม่ประมวลผลบางส่วนของ template?
    

Question 7 (1 Points)
การใส่ comment ใน Freemarker template ที่จะไม่แสดงในผลลัพธ์สุดท้าย ควรใช้ syntax ใด?
    

Question 8 (2 Points)
การแทรกค่าแบบ escaped ใน HTML (เพื่อป้องกัน injection) ควรใช้รูปแบบใด?
   

Question 9 (1 Points)
ถ้าต้องการวนซ้ำข้อมูลใน List ควรใช้ directive ใด?
    

Question 10 (1 Points)
ไฟล์ template สามารถประกอบไปด้วยอะไรบ้าง?
    

Viewers : 7,527
Other Programs
Freemarker Template Quiz