How can I use interpolation #{} to insert complex expressions into an HTML style attribute?
#{}
span(class="widget_#{widget.number}")
You can use it as a Javascript way.
span(class="widget_" + widget.number)
Source: https://habr.com/ru/post/1339234/More articles:MySQL: how do you consider non-empty fields in a string and then count the same values? - mysqljquery keypress gets value right away - javascriptHow to clear AVCaptureSession in applicationDidEnterBackground? - backgroundLinq to SQL TransactionScope - linq-to-sqlCrop Large TIFF Image.NET without reading an image into memory - .netReal-time Planning in C # - c #Is there a way to run Google Chrome script content after loading the DOM, but before any page scripts are executed? - javascriptCustom Symbian Fonts Qt - fontsHow to schedule tasks using Quartz.Net inside a windows service? - c #__doPostBack reloads the entire page, not just UpdatePanel - asp.netAll Articles