This discussion thread is to submit your solution for Week 3 of the May 2023 Developer Challenge - Open-Source ABAP .
Week 3 – ABAP Mustache https://github.com/sbcgua/abap_mustache
Mustache is a big deal in the web development world. It's a template syntax that doesn't use logic, letting you whip up a text template, stick some tags in there, and then swap those tags with dynamic content straight from your program – anything from individual values to full lists of values. Mustache is a real champ when it comes to generating bits of HTML (or entire pages), or pretty much any other text you want to template. Plus, the Mustache syntax is used in a huge number of languages.
Community member @atsy has put together an implementation of the mustache processor in ABAP, and named it - you guessed it - ABAP Mustache. So, for your third-week challenge, we're putting the spotlight on the ABAP Mustache project. Your challenge is to simply create an ABAP application which leverages this framework and outputs some data to the console. How you use ABAP Mustache is totally up to you - it's your chance to get creative and show us what you've got. Whether you want to keep it simple or go all out is completely your call. Once you're done, all you need to do is share your working ABAP code and give us a screenshot of the output in the console to prove you've nailed the challenge.
❗You will get credit for this weeks’ challenge by posting in this discussion thread the working ABAP code (a screen shot of your code, or via a link to your GitHub repo), and showing a screen shot of the output in the console. To give you an idea, here's an example screenshot below.
Have Fun 🤩
Here is my repo for this week's challenge:
Some code screenshots:
PS: Someone already pulled the ABAP Mustache repository on the trial instance of SAP BTP Cloud where my account is. This caused me a problem because the pulled version was not the one from the cloud branch (Steampunk). In order not to modify the objects for the person who did the pull, I copied some of the classes that were not supported and adapted them afterward. That's why in my repo there are a couple of additional adapted classes.
this is my code and result for Week 3 Challenge 🙂
link to GitHub Repository: