Jump to content
Sign in to follow this  
lynkfs@gmail.com

website-building 4

Recommended Posts

In the past I've produced some commercial websites using SMS and the full rtl

 

But just now published the first multi-page fully responsive SMS generated website using the ribbon philosophy (see previous post)

 

For demo see partial copy here (anonymised, home page and first product page only)

 

The funny thing is that looking at the code, it's all very parametrised

Typical ribbon-code looks like


  var rev01  := TElement.Create('div', rev00, 'div',  props['review-title']);
      rev01.setProperty('color', '#8c7500');
      rev01.setProperty('font', 'italic 43px "Old Standard TT", sans-serif');
      rev01.setProperty('margin-bottom', '35px');
      rev01.setProperty('text-align', 'center');
etc...

with invocation code like

  props['review-title'] := 'Reviews';
  TReview.Create(nil, props);

and no other logic.

All of these parameters could easily be stored in a (cloud based) sql database

The database design would be very simple indeed : a table for the elements (type, parent, class, content and position) and a linked table for attributes and properties

 

To display an informational webpage, only the simplest of smart programs would be needed : read database, create elements, set attributes

without even the need for local unit code like the above snippet - the data has become the logic

and of course no pascal layout coding necessary, this has been farmed out to the browser

 

.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×