Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
I've been working on a static site generator called Jellybean over the past few weeks and this week, I wanted to add a few more features:
The first issue I created was to add support for the --lang/-l flag. This flag allows users to specify a custom language in the command line arguments. This language would be added to the lang attribute of the tag in the generated HTML files. If no language is specified, the default is 'en-CA'. I added this feature by using yargs, which I have used to handle all command line arguments. When generating the HTML from a template HTML file, I added the following line: