You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
May need a sort of standard library for certain things, especially in dealing with strings. I am not certain if Math (cos, sin, pi, etc) or array/collection manipulation would be necessary. I feel these may cross the line of what a view engine should do whereas substring is something a view engine may need to do. Displaying a portion of a string can be display logic. Manipulating data should be business logic.
Strings
string concatenation
substring
length
toUpperCase
toLowerCase
matches
path to width and justify left/right/center
trim left/right/both
startswith
endswith
Array
length
slice
join
Not certain if these have a strong use case, especially with how the display/block logic works. They can't function at this time. To make blocks more like functions would shift more to general purpose programming language vs a template-focused language.
array reduce
array map
array filter
every (if all things in the array pass)
some (if one thing in the array passes)
Not sure if these string methods have a strong use case:
split
char at
The text was updated successfully, but these errors were encountered:
May need a sort of standard library for certain things, especially in dealing with strings. I am not certain if Math (cos, sin, pi, etc) or array/collection manipulation would be necessary. I feel these may cross the line of what a view engine should do whereas substring is something a view engine may need to do. Displaying a portion of a string can be display logic. Manipulating data should be business logic.
Strings
Array
Not certain if these have a strong use case, especially with how the display/block logic works. They can't function at this time. To make blocks more like functions would shift more to general purpose programming language vs a template-focused language.
Not sure if these string methods have a strong use case:
The text was updated successfully, but these errors were encountered: