Commit graph

37 commits

Author SHA1 Message Date
2a4b7d88dd
Fix error in skooma 2022-04-12 22:35:44 +02:00
fdc7fca7e7
Remove promise handling from skooma.js
This was really just feature creep and doesn't have to be part of
skooma. It could easily be implemented as an independent function or
module.
2022-04-06 00:40:37 +02:00
cdaeac1a9f
Add mechanism for custom built-in elements
Note: Fuck Javascript
2022-03-26 14:14:07 +01:00
3724b3e25d
Add explicit empty value to skooma
Optional arguments in skooma can be very annoying at times:

	html.span("foo: ", may_return_undefined())

Skooma will produce a warning to inform the user that one of their
arguments is undefined as is is often unintended.
The new `empty` value provides a mechanism to explicitly ignore a single
argument, should it be optional

	html.span("foo: ", may_return_undefined() || empty)
2022-03-26 12:49:02 +01:00
53a5b95493
Add check for null in skooma as well 2022-03-26 12:36:39 +01:00
f6556d369a
Handle undefined arguments without crashing in skooma 2022-03-26 12:23:34 +01:00
5512c955e5 Refactor CSS and add "style" function 2022-02-08 13:14:20 +01:00
7c6e231d09
Rework skooma.bind function 2022-02-06 12:56:54 +01:00
23f8a30af6 Make skooma/bind more robust 2022-01-14 11:56:15 +01:00
47969d4c42
Extend skooma.text function to support template strings 2021-12-26 17:54:04 +01:00
cf116753a8 Add current property to skooma bound elements
Elements bound witht he skooma bind function now get a `current`
property patched in.
2021-11-25 10:54:34 +01:00
d1c22234c3 Add the skooma bind function 2021-11-25 10:08:59 +01:00
658608a405 Add text wrapper to skooma.js 2021-11-23 16:27:25 +01:00
fd58f3b437
Add handle helper function to skooma 2021-10-05 19:28:36 +02:00
95c6540ba2
Add support for initialisation function to skooma 2021-09-13 18:54:07 +02:00
12edc1890e Add special case for dataset to skooma templating 2021-09-13 14:15:20 +02:00
bf50ea22dc Remove preventDefault from inline event listeners 2021-09-10 13:31:44 +02:00
3c50558773
Add prommise support to skooma 2021-08-27 16:03:04 +02:00
8c0c4f5614
Fix typo in skooma 2021-08-16 19:26:45 +02:00
326a17f4e1
Improve skooma attribute handling 2021-08-16 18:03:43 +02:00
864cf22f5f
Add skooma style property for setting inline styles 2021-08-16 17:59:24 +02:00
0d547a3ceb
Add has metamethod to proxies
This change allows proxies to be used with `with` for easier HTML/SVG
generation.
2021-08-04 17:05:07 +02:00
f2f4c03d69
Make name filtering exclusive to HTML nodes 2021-07-30 12:12:00 +02:00
a9c4877198
Add special shadowRoot semantics 2021-07-21 12:19:10 +02:00
397d294f41 Prevent default on skooma event listeners 2021-06-24 15:58:11 +02:00
523a720196 Add comments documenting what stuff does 2021-06-23 16:21:33 +02:00
124857f7f8
Add event listeners to skooma.js 2021-05-26 11:27:46 +02:00
62f974b878
Fix case of hyphenated skooma elements 2021-05-26 11:26:12 +02:00
544e18f9b8
Remove automatic skooma attribute hyphenation 2021-05-22 18:34:17 +02:00
0448cd2742
Update skooma.js to handle numbers 2021-05-22 14:34:17 +02:00
fb6b86bf7f
Fix undefined variable in skooma.js 2021-05-17 17:19:32 +02:00
60af0773a0
Make hyphenation in consistent with browser APIs
Javascript snake-case gets turned into kebab-case in HTML

Change name attribute in example to match
2021-05-02 10:35:55 +02:00
6f85103c63 Fix skooma.js syntax for strict mode 2021-03-05 13:29:21 +01:00
c16eb29161
Extend skooma to support SVG as well as HTML 2021-02-23 19:11:25 +01:00
5f27242b3f
Fix checking for template objects in skooma.js 2021-02-23 18:55:32 +01:00
7e72b33325
Remove uppercase node special case from skooma.js 2021-02-22 20:23:41 +01:00
7a61b965ba
Rename render to skooma.js 2021-02-22 18:37:53 +01:00
Renamed from render.js (Browse further)