This tutorial details the EASY way to create a simple mobile app, with the bulk of the code running on your web server (we would recommend using Ubuntu with Apache or NGinx on something like a Digital Ocean Droplet). You don’t need to do the actually Android/iOS development bit yourself, but by all means you can skip our step about this and do that end yourself if you want!
Grouping and Nesting in CSS
Class and ID Selectors in CSS
Managing your own Docker Host with XOA
If you read our recent tutorial series on using Docker Containers via a web frontend you may also be curious about Docker on the command line.
Value Interpolation in JavaScript Code using Pug
Interpolating values is helpful if you need to pass a server-side variable to client-side JavaScript (or other languages that require it).
In the case of variables, numbers, strings, and the like, you can pass these types of variables directly into your JavaScript with bracket syntax plus an explanation point (so that the code inside the brackets is not evaluated.) This is useful for parametrizing JavaScript code that require something from your server.
Server Side Variable Interpolation with Pug
It’s possible to pass variables from your server into Pug for dynamic content or script generation. Pug templates can access variables passed to the res.render
function in Express (or pug.renderFile
if you are not using Express, the arguments are identical).
Raw Variable Interpolation in HTML with Pug
Content interpolated with bracket syntax will be evaluated for code, the output of which is included in your HTML output.
HTML Element Interpolation with Pug
Further to our previous tutorial, sometimes it may be necessary to nest HTML tags inside of each other. Element interpolation with Pug is done in a syntax similar to variable interpolation; square brackets instead of curly braces are used here.
Getting started with Pug template engine
Ghost in the Machine!
Haunt your website for halloween! Scare your friends and website visitors with a simple JavaScript function and a bit of CSS black magic.