f-strings

String interpolation for Lua.

$ luarocks install f-strings

String interpolation for Lua, inspired by f-strings,
a form of string interpolation in Python 3.6.
It allows you to interpolate variables in strings
(including local variables) using the syntax:
str = F"The value of x is {x} and the value of y is {y:%.2f}."

Versions

scm-1dev8 years ago36 downloads
0.2-18 years ago4,192 downloads
0.1-18 years ago92 downloads

Dependency for

luals2dox, xcomposer

Manifests