For examples see the kalida_framework repository. See: https://github.com/addller/kalida_framework.git
#EN_US Kalida was built based on the concept of triple attribution, identification by inspection, handling by controllers and actions and dilution of the http response in the composition of a view.
The minimalist version, TAG.min.js, is only 19 kb.
What would be the triple attribution? The triple assignment consists of three actions performed in one instruction, which would be: a) creation of the html element; b) assigning the created html element to a variable; c) based on the variable name, adding a css style to the created html element. Note that an instruction has three functions in order to carry out the three actions mentioned above.
#PT_BR O Kalida foi construído com base no conceito de tripla atribuição, identificação por inspeção, manuseabilidade por controllers e actions e diluição da resposta http na composição de uma view.
A versão minimalista, TAG.min.js tem apenas 19 kb.
O que seria a tripla atribuição? A tripla atribuição consiste em três ações executadas em uma instrução, que seriam: a) criação do elemento html; b) atribuição do elemento html criado a uma variável; c) com base no nome da variável, adição de um estilo css ao elemento html criado. Veja que uma instrução tem três atribuições no sentido de realizar as três ações mencionadas acima.