2.3.0 • Published 4 months ago

rinojs v2.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Rino.js 🦏

Fast learning, preprocessing, intuitive web framework.

Rino.js is created to fix the complexity matters of web framework.

▶️ Installation

The recommended way to start your Rino project:

npm create rino@latest

For manual setup:

npm i rinojs

📢 Notice

🎉 Release version 2.3.0

Please use the latest version. There's a big update for templating script feature and server side rending (SSR) function from version 2.3.0.

Now you can use javascript package from templating script from version 2.3.0. And if you want to add html content, you have to use console.log(). Anything that is printed out as std.out from the templating code process will be rendered. And for static site generation, path of page is given as a process argument. So you can perform page specific templating from shared component.

<script @type="js" type="text/javascript">
  import os from "os";
  // This is for templating html content
  console.log(os.type());
</script>

Now we support server side rendering(SSR) async function called buildSSRComponent(componentPath, componentsDir, mdDir, args = []) from version 2.3.0 with helpful SSR functions:

async function findPort(port),
async function bundleJS(scriptPath, name = "jsbundle"),
async function bundleTS(scriptPath, projectPath, name = "tsbundle"),
async function bundleCSS(cssContent, baseDir),
async function generateSitemap(list),
async function generateSitemapFile(list, filename),
async function generateProjectSitemap(projectPath, config),
function getFilesRecursively(dir, extensions)

For async function buildSSRComponent (componentPath, componentsDir, mdDir, args = []), componentPath is path of base page html or any html component. And it will grab components and markdown from componentsDir and mdDir.

👍 Releasing Version 2

New version, better development experience and totally different from version 1.

Many syntax is simplified and following html, css and javascript standard. And many things are updated for automation.

Development Build System is changed to the server side rendering with memory data management with individual IO update on change. I call this, build on request. This is so much faster than version 1.

Example of Rino 2

  • ./pages/index.html
<!DOCTYPE html>
<html>
  <head></head>
  <body>
    <component
      @path="button"
      @tag="button"
      type="button"
      onclick="alert('Hello world!')"
    />
    <component @path="footer" @tag="footer" />
    <script @type="md" style="color: red" type="text/markdown">
      ## test

      test

      - test
    </script>
    <script @type="ts" type="text/typescript">
      // This is for templating html content
      let world: string = "Hello world! from typescript";
      console.log(world);
    </script>
    <script @type="js" type="text/javascript">
      // This is for templating html content
      console.log("Hello world! from javascript");
    </script>
  </body>
</html>

📖 Documentation

Official Website

💪 Support Rino!

👼 Become a Sponsor

🐱‍🏍 Sponsors

👨‍💻 Author

Victor Chanil Park

💯 License

MIT, See LICENSE.

2.2.1

8 months ago

2.0.3

8 months ago

2.2.0

8 months ago

2.0.2

8 months ago

2.2.3

7 months ago

2.0.5

8 months ago

2.2.2

7 months ago

2.0.4

8 months ago

2.0.7

8 months ago

2.2.4

7 months ago

2.0.6

8 months ago

2.0.9

8 months ago

2.0.8

8 months ago

2.0.1

8 months ago

2.0.0

8 months ago

2.3.0

4 months ago

2.1.1

8 months ago

2.0.10

8 months ago

2.1.0

8 months ago

1.5.19

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.5.10

2 years ago

1.5.12

2 years ago

1.5.11

2 years ago

1.5.14

2 years ago

1.5.13

2 years ago

1.5.16

2 years ago

1.5.15

2 years ago

1.5.18

2 years ago

1.5.17

2 years ago

1.5.9

2 years ago

1.5.8

2 years ago

1.5.7

2 years ago

1.5.6

2 years ago

0.8.1

2 years ago

0.7.2

2 years ago

0.8.0

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago