📜 ⬆️ ⬇️

WebProject - a free program for creating and maintaining html-sites

I like the html sites. They are fast, do not load the server, they are easy to backup and easy to carry, can be kept on a flash drive for offline viewing. But there is a problem - they are difficult to accompany. Making changes to several files to change a menu item or year of copyright is not a fun business. For these purposes, I first wrote a template maker for myself, and then after several iterations, such a program was born - WebProject .




')
The program is a kind of offline CMS and collects html-site from the described structure of pages and sections on a given template, as well as allows you to upload a ready-made site to an ftp-server.

Let me briefly list what the program allows:


Initially, the program was planned as a kind of framework. Elements of the project - pages and categories - the bricks from which the site is assembled. There are plans to add specialized elements - a post (for keeping an analogue of the blog), news, gallery, files (for placing files with their description).

It would be disrespectful to the community not to share some technical details of the project. The project is written in Delphi XE, for the design used its components based on the library GR32. Of particular interest was the development of the template engine. The template is first parsed and divided into blocks in accordance with the site design structure: menu, content, sidebar, and internally blocks are defined for iterating the elements and inserts the contents of elements of type {name}, {url}, etc. In fact, this is a possibility of macro-substitution, which sometimes allows to significantly reduce the amount of duplicate text and the number of errors associated with it. The program has the ability to set macros for the entire project, and for a separate site. In addition, it is possible to make conditional inserts: {?! IsLast} | {/?} All this made the template system easy to adapt to ready-made css-templates.

I would also like to say a few words about upload on FTP. In the project you can keep several sites, each can specify your server for publication. And publish everything with one button. Moreover, by default only changes are published, and files that have already been published, but then deleted, are also deleted from the FTP server.

For each site, you can configure the folder where the site will be generated and this allows you to spend the next trick with creating a separate part of the site with your template: create the main site, then the site that will be the section of the large site, and then set up the folder to generate the site section to the subfolder of the main site . Then the site subsection can be excluded from the publication, when the main site is published, the subsection files will be uploaded to FTP automatically. So I have done on the program site with the main domain bytexpert.ru and the section bytexpert.ru/webproject

You can argue a lot about whether html-sites are needed now or it’s easier today to install WordPress and do everything in it, but my opinion is this: why use a resource-intensive solution when a task is successfully handled by a set of html files. All you need is a handy tool, which I tried to do with my program.

Software site: bytexpert.ru/webproject
Direct link to download the program: bytexpert.ru/webproject/WebProjectSetup.exe

Source: https://habr.com/ru/post/139916/


All Articles