Tag Archives: Play Framework

Scala: พิมพ์ ‘@’ ในหน้าเว็ป ของ Play Framework

เนื่องจาก ‘@’ เป็น special charactor สำหรับหน้า html ของ Play Framework ดังนั้น ถ้าเราพิมพ์ @ เฉยๆ มันจะ compile ไม่ผ่าน เพราะมันเป็น special charactor เอาไว้เรียกตัวแปร เวลาใช้ให้เราพิมพ์ @@ แทน @ ก็จะใช้งานได้  

Posted in Scala | Tagged , | Leave a comment