Create powerful webapps using handlebarsjs
Learn how to use HandlebarsJs and create powerful webapps and shorten the time to develop website and application
How to post array in an HTML form (posting array)
Learn how to post array in an HTML form, for this example we create a simple shop manger php app and post table data
Hugo Shortcode to include a markdown file
Here is how you can use shortcode’s to include a another markdown file in hugo. Including markdown will help you reuse contents from another blog markdown post/article
Hugo partial code to add class to table
There is no straight direct way to add a css class to hugo tables for styling. We use a workaround to add class to hugo marked-down tables
Hugo: How to generate Webp images for your websites & blog
Learn how to use Hugo’s builtin Image processing feature to generate Webp Image and boost your website speed & SEO ranking.
Use Hugo image processing to convert Images to any formats
Use this hugo partial code for automating Images format conversion to other formats like webp, bmp, gif, jpeg, jpg, png, tif and tiff
Wordpress: Using wp_remote_get() to fetch remote REST json API
Learn how to use wp_remote_get() a wordpress builtin api to fetch any REST apis. wp_remote_get() is useful if you want to integrate data from another web service into your WordPress site, or if you want to consume data from an external API for some other purpose. For explanation we will use github REST api and pull git commits and print them.
PHP: using php cURL to fetch remote REST json API
Learn how to use PHP cURL. PHP cURL is a great tool for interacting with web services and APIs, and it provides a lot of control over the requests and responses.
Hugo: Using getJSON to fetch remote REST API in hugo template
Hugo is very powerful static site builder, it can fetch any JSON rest API and build content out of it. In this example we will use getJSON hugo function to fetch the json data from Woocommerce site. You can develope this further and create a full fledged headless e-commerce website with hugo at the frontend wordpress and woocommerce as a backend.
Imagemagick Convert PDF to Image
How to convert a pdf to image using Imagemagick