Faịlụ ndị dabara na mpaghara ndị e denyere aha na ọnụ ọgụgụ dị n'elu bụ ndị a:
.i18n/htm/t1.pug
.i18n/htm/t2.pug
pug
bụ asụsụ ndebiri na-ewepụta HTML
's.
➔ Pịa ebe a ka ịmụta ụtọ asụsụ nke pug
A na-eji eriri usoro ${I18N.sponsor}
n'ime faịlụ ahụ iji mejuputa mba ụwa, a ga-eji ederede kwekọrọ na i18n.yml
Faịlụ .i18n/htm/topbar.css
:
[!WARN] Edela
css
najs
napug
, ma ọ bụghị ya, a ga-enwe njehie.
Enweghị ike ide js
na pug
Ọ bụrụ na achọrọ mmekọrịta, enwere ike ime ya site na ịmepụta akụkụ weebụ.
Ngwa nwere ike kọwapụta akụkụ ibe weebụ na md/.i18n/htm/index.js
wee jiri akụrụngwa na foot.pug
.
Ọ dị mfe ịmepụta akụrụngwa webụ, dị ka <x-img>
omenala0 .
customElements.define(
'x-img',
class extends HTMLElement {
constructor() {
super();
var img = document.createElement('img');
img.src = '//p.3ti.site/i18n.svg';
img.style = "height:99px;width:99px;";
this.append(img);
}
}
)
Ugbu a x/i-h.js
ka a na-ezo aka na md/.i18n/htm/index.js
, nke 18x/src/i-h.js akụrụngwa webụ na-eji maka mba ụwa nke igodo na n'okpuru ederede ọdịnaya ahaziri ahazi.