mariocraft987 / bark-coding

A Blockly Based coding language
https://bark.dumorando.com
BSD 2-Clause "Simplified" License
10 stars 18 forks source link

Consistent templating #108

Closed onezpp closed 5 days ago

onezpp commented 2 months ago

It is counter-productive to copy the same basic HTML file over to every document: using EJS could compile to a static website and will be scalable when server-side functionality is added.

Additionally, there are inline scripts in some files, but external scripts in others: shouldn't all scripts be external for consistency?

mariocraft987 commented 2 months ago

i've been thinking of doing this

mariocraft987 commented 2 months ago

possible that would be added

breakfast-for-dinner commented 2 months ago

this is a good idea, it's annoying changing every individual page when there's an update like that

dumorando commented 2 months ago

ignore this nevermind

Bashamega commented 1 month ago

Hello:) @mariocraft987 I would like to work on this.

I will solve this issue by creating a js file called template.js. Which will manipulate the DOM, and add the template parts, like the navbar, and the footer.

mariocraft987 commented 1 month ago

Maybe in a future update

Bashamega commented 1 month ago

@qwertyy-dev Isn't the index.js per form the same function?

breakfast-for-dinner commented 1 month ago

@qwertyy-dev Isn't the index.js per form the same function?

i'm sorry, i don't understand what you're trying to say

Bashamega commented 1 month ago

@qwertyy-dev Isn't the index.js per form the same function?

i'm sorry, i don't understand what you're trying to say

I mean that the index.js has the same functionality

Bashamega commented 5 days ago

Hello:) We already solved this issue