Static Vals #32
Replies: 3 comments 5 replies
-
|
Great discussion here: https://discord.com/channels/1020432421243592714/1020432421243592717/1194566199200190525 I think this is a wonderful question. Could it make sense to "overload" the term val in such a way? Already it feels like the many different types of "val" are a bit overwhelming. But maybe there's room for one more slice. Or should we offer a static file hosting service that's separate? The issue there is that that would be a big increase in the product's complexity / surface area. Let's continue to noodle on it! |
Beta Was this translation helpful? Give feedback.
-
|
I just thought about this once again, and I feel like there could be a nice integration with esm.town: For this static_val: ( name,speed
usain,10
biden,-3The esm.town url ( export default <json-stringified-content>;So you would be able to import the text from other vals. import table from "https://esm.town/v/pomdtr/table"If I want to access the raw text of the val, I would use |
Beta Was this translation helpful? Give feedback.
-
|
This would be great so we could use our limited "Runs per Day" on stuff that is actually dynamic that needs computation. What would happen if a val updated a static file's data? I'm really optimistic about val.town because Glitch.com is shutting down and the world desperately needs a friendly replacement. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I often want to write/host static assets in val.town (ex: html files, json configs, css stylesheets, markdown documents).
Using blob for those is not great since they do not support:
My current workaround is to use this val: https://www.val.town/v/pomdtr/static, but obviously the editing experience is subpar.
There are already a significant amount of vals that are used only client-side (ex: https://www.val.town/v/stevekrouse/dataTableScript) that would fit this definition that would fit this definition. The run button does not accomplish anything for them, since they are not supposed to run on val.town,
I think introducing a new type of vals (static vals) would make sense. Intead of a run button they would have a language selector at the top right.
It would also play well with the new import syntax that should release soon in deno:
Beta Was this translation helpful? Give feedback.
All reactions