How to render a simple html table within a template node?
As i joined the db2 race very late, i might be missing some basic things, unfortunately my search algorithm isnt able to find relevant solution.
[{"id":"a4e151ffdd5011cf","type":"ui_template","z":"5a5b50a5e5a3beba","group":"df08b927c9f612b3","name":"","order":10,"width":"13","height":"7","format":"","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","className":"","x":585,"y":4175,"wires":[[]]},{"id":"046e48e594f38dc0","type":"inject","z":"5a5b50a5e5a3beba","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":300,"y":4175,"wires":[["1df9bb1b3025f074"]]},{"id":"1df9bb1b3025f074","type":"template","z":"5a5b50a5e5a3beba","name":"","field":"template","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<!DOCTYPE html> <html> <head> <style> table { border: 1px solid red; /* Add border around the entire table */ } th, td { border: 1px solid red; /* Add border around each cell */ padding: 5px; /* Add some padding for better readability */ } </style> </head> <body> <table> <tr> <th>Column 1</th> <th>Column 2</th> <th>Column 3</th> <th>Column 4</th> <th>Column 5</th> </tr> <tr> <td>Row 1, Cell 1</td> <td>Row 1, Cell 2</td> <td>Row 1, Cell 3</td> <td>Row 1, Cell 4</td> <td>Row 1, Cell 5</td> </tr> <tr> <td>Row 2, Cell 1</td> <td>Row 2, Cell 2</td> <td>Row 2, Cell 3</td> <td>Row 2, Cell 4</td> <td>Row 2, Cell 5</td> </tr> </table> </body> </html>","output":"str","x":435,"y":4175,"wires":[["a4e151ffdd5011cf"]]},{"id":"df08b927c9f612b3","type":"ui_group","name":"Demo","tab":"159656fa2fe2c65c","order":2,"disp":false,"width":"44","collapse":false,"className":""},{"id":"159656fa2fe2c65c","type":"ui_tab","name":"MONTH","icon":"fa-calendar","order":11,"disabled":false,"hidden":false}]
In db1 the above flow was sufficient to generate a table.
in db2, i can use the ui-table node and get it, but i want a simple table from template node.