Is there exist some string method in jade template?
Like subStr
, slice
, toLowerCase
?
I can find this API in it's doc
Where I can find them?
You can work with variables in template as is. So it's just JavaScript variables.
html
head
title= title.toUpperCase()
body
p= text.substr(1, 100) + '...'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With