1.0.3 • Published 5 months ago

esay-ya v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

Esay-Ya

Make your program so Esay-Ya!

Install

npm i esay-ya

Usager

import { createApp } from 'esay-ya'

createApp({
  i18nFiles: import.meta.glob('./**.i18n.js', { eager: true }),
  dataFiles: import.meta.glob('./**.data.js', { eager: true }),
  kitFiles: import.meta.glob('./**.kit.js', { eager: true }),
  pageFiles: import.meta.glob('./**.page.js', { eager: true }),
  name: 'welcome'
})

--- the page welcome.page.js ---

import { tag } from 'esay-ya'

const header = (urlParams, data) =>
{
  const { wrapper, text  } = tag.div
  const { icon } = tag.img
  text.set({
    innerText: 'Welcome Use Esay-Ya!'
  })
  icon.set({
    src: './logo.png'
  })
  retur wrapper.add(icon, text)
}

const main = (urlParams, data) =>
{
  return tag.div.content.set({
    innerText: "Hello World!"
  })
}
export default
{
  header,
  main
}
1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago