1.1.1 • Published 1 year ago

polyfusion v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

polyfusion

An easier to use front end js library base off objects.

https://github.com/eden-sobol/polyfusion

index.html is the base file to use that already has links to js. or install and manually link to polyfusion.js with npm install polyfusion

polyfusion uses an object to load html and css. create an object in the script.js called "poly". in the object, put another object called "html" with two strings, "head", and "body". If you want multiline, they need to use backticks. in the root object put a string "css".

example: const poly = { html: { head: `

    <title>ecliptic</title>
    ` ``,
    body: `` `
    <p>hi</p>
    <a href="https://edensobol.com">eden sobol</a>
    ` ``
},
css: `` `
p {
    color: red;
}
a {
    color: green;
}

${code(function() {
    console.log("you can write js in strings")
})}
` ``

}

1.1.1

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago