Priorly, I had no trouble generating tables using hard coded options.attribute kinda values that I was able to pass to pug file. Next, create a sub-directory inside the root directory for keeping. but I don't even use express or anything, I am simply trying to generate HTML using my template. In this section we will have a quick look at Pug, a high-performance HTML templating engine, and do away with loading of HTML files. I have seen numerous examples on the internet which uses code like app.render() etc. The problem I have is to pass my "tasks" object from my typescript/javascript file to the pug file. What I am trying to achieve is actually quite simple, using "each", dynamically adding table rows. I see many use cases for pug on web apps, but my app is not really a web app at all other than interacting some REST/SOAP API endpoints. It has object-oriented, generic, and functional features. C++ is a low-level and cross-platform imperative language. My use case is that I use pug to generate e-mail friendly html which cannot have any scripts inside (for whatever reason). By using pug, I am trying to generate some HTML which I intend to send reporting mails which summarizes operations I performed using my app. HTML provides the basic structure, CSS controls formatting, and JavaScript controls the behavior of different elements. I do have an issue with the library which doesn't necessarily indicate a bug. Name Surname Organization Action Mmm Ddd Hhh add Aaa Ooo 333 add Aaa Bbb Ddd add Aaa Ddd Vvv update Caa Ccc Ooo update Sss Ooo Aaa update Aaa Rrr Mmm remove Sss Ccc Iii remove Bbb Ooo Aaa remove Actual HTML
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |