Loading to using the handlebars template engine

Step 1 Installation handlebars cnpm i handlebars -S Create a new templete folder; create a new dir.tpl.html; <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>{{title}}</title> </head> <body> {{#each files}} <a href="{{../dir}}/{{this}}">{{ ...

Posted on Wed, 01 Jan 2020 08:47:35 -0800 by fantomel

Express document (express generator)

Express application builder Use the express generator tool to quickly create an application framework. The express generator package installs the express command-line tool, using the following command: $ npm install express-generator -g Use the - h option to display command options: $ express -h Usage: express [options] [dir] Options: ...

Posted on Sun, 01 Dec 2019 06:49:37 -0800 by Brokenhope

Mobile terminal listens to the paged loading list of scroll bar

When processing list data, when the data volume is too large, we will do paging processing to reduce the pressure on the server. The paging effect is as follows: In the actual project development, paging generally requests the background interface, the incoming page number and the number of pages to be displayed. The backgro ...

Posted on Sat, 30 Nov 2019 11:07:02 -0800 by kester

Manually move a front-end scaffold yourself

Creating a new project manually is a bit lowHow to pretend?Of course, you write a scaffold yourself. Basic process Scaffolding is basically this process. Of course, some complex customization projects have more small steps, so consider it as necessary1. Enter basic information2. Download the code base3. Make some modifications to the code base4 ...

Posted on Sun, 29 Sep 2019 02:12:18 -0700 by -[ webdreamer ]

Customize your CLI, one-click build project

background In our work, we will inevitably encounter the scene that we need to build our own scaffolding. There are many ready-made scaffolding, such as create-react-app, vue-cli, which can cover most of the needs. But there are also many inconveniences. We need to customize some configurations and do not want to use rewired or eject. At this t ...

Posted on Fri, 27 Sep 2019 03:23:01 -0700 by aftabn10

Build a self-contained front-end scaffold from scratch

Why do we need a scaffold? For me personally, I often write demo or a new project, either copy the previous project template, or rebuild it, which is more troublesome and time-consuming, so I have a scaffold to meet my needs. The effect of scaffolding This is a basic scaffold, init a project, enter the project name, version number and other in ...

Posted on Sun, 22 Sep 2019 07:03:47 -0700 by wellscam