GithubHelp home page GithubHelp logo

Templates for onRender about livingmarkup HOT 4 CLOSED

hxtree avatar hxtree commented on June 10, 2024
Templates for onRender

from livingmarkup.

Comments (4)

aswinvk28 avatar aswinvk28 commented on June 10, 2024

hxtree won't require a template onRender because there is no replication of content throughout. This requires administration and the complexity improves as you include more flexibility in the production of templates. If content types are added, they must conform with administration of content.

Please check here:
https://refactoring.guru/design-patterns/chain-of-responsibility

Why don't you try code generation based on UI / Graphical Interface?
https://www.drupal.org/files/OneTemplate.jpg

from livingmarkup.

hxtree avatar hxtree commented on June 10, 2024

Hi Awsin,

The question I don't know the answer to is whether an onRender call could consist of enough markup to justify it being broken up into another a View (*.phtml) type file for separation of concerns? For example, what would a bloated Module/Navbar onRender() look like? I'd rather keep it simple, of course, but it certainly something to consider.

I'm both familiar with the Refactoring Guru and the Chain of Responsibility design pattern. However, reading through it again, got me to think about applying a chain of responsibility to DOM elements, which could be pretty neat for forms.

e.g. button onSubmit could be picked up by a module with xpath \form using the design pattern. This inline with the way the DOM ancestor variable access currently works.

<form>
<button/>
<form>

I certainly see the benefits of a WYSIWYG implementation. But, first I think it's important to flesh out the core modules.

from livingmarkup.

hxtree avatar hxtree commented on June 10, 2024

Also, I see the page templates you're referring to being essentially just a boilerplate page that gets copied over during page creation that consist of LHTML5.

from livingmarkup.

hxtree avatar hxtree commented on June 10, 2024

Page templates should feature semantic elements:
https://www.w3schools.com/html/html5_semantic_elements.asp

from livingmarkup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.