Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-ejsx-app

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-ejsx-app - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

40

index.js

@@ -36,2 +36,3 @@ #!/usr/bin/env node

"sqlite3": "^5.1.7",
"sqlite": "^5.1.1",
"zod": "^3.23.8"

@@ -226,3 +227,3 @@ },

pageRoutes: `import { Hono } from 'hono';
pageRoutes: `import { Hono } from 'hono';
import ejsx from '@sryden/ejsx';

@@ -269,6 +270,6 @@ import { getDb } from '../db/setup.js';

pages.get('/', async (c) => {
const html = await ejsx.render(\`
const template = \`
<% slots.title = 'Home' %>
<% slots.navbar = renderComponent('Navbar', { user: null }) %>
<% slots.content = \`
<% slots.content = \\\`
<div class="text-center">

@@ -279,6 +280,7 @@ <h1 class="text-4xl font-bold mb-4">Welcome to EJSX</h1>

</div>
\` %>
\\\` %>
<%- renderLayout('main', slots) %>
\`, {});
\`;
const html = await ejsx.render(template, {});
return c.html(html);

@@ -288,6 +290,6 @@ });

pages.get('/login', async (c) => {
const html = await ejsx.render(\`
const template = \`
<% slots.title = 'Login' %>
<% slots.navbar = renderComponent('Navbar', { user: null }) %>
<% slots.head = \`
<% slots.head = \\\`
<script>

@@ -314,4 +316,4 @@ async function login(e) {

</script>
\` %>
<% slots.content = \`
\\\` %>
<% slots.content = \\\`
<div class="max-w-md mx-auto">

@@ -336,6 +338,7 @@ <h1 class="text-2xl font-bold mb-4">Login</h1>

</div>
\` %>
\\\` %>
<%- renderLayout('main', slots) %>
\`, {});
\`;
const html = await ejsx.render(template, {});
return c.html(html);

@@ -345,5 +348,5 @@ });

pages.get('/dashboard', async (c) => {
const html = await ejsx.render(\`
const template = \`
<% slots.title = 'Dashboard' %>
<% slots.head = \`
<% slots.head = \\\`
<script>

@@ -359,3 +362,3 @@ async function loadUser() {

headers: {
'Authorization': \\\`Bearer \${token}\\\`
'Authorization': \\\\\\\`Bearer \\\${token}\\\\\\\`
}

@@ -381,5 +384,5 @@ });

</script>
\` %>
\\\` %>
<% slots.navbar = renderComponent('Navbar', { user: { name: '' } }) %>
<% slots.content = \`
<% slots.content = \\\`
<div>

@@ -389,6 +392,7 @@ <h1 class="text-2xl font-bold mb-4">Dashboard</h1>

</div>
\` %>
\\\` %>
<%- renderLayout('main', slots) %>
\`, {});
\`;
const html = await ejsx.render(template, {});
return c.html(html);

@@ -395,0 +399,0 @@ });

{
"name": "create-ejsx-app",
"version": "1.0.3",
"version": "1.0.4",
"description": "Create a production-ready Hono & EJSX app with authentication and dashboard",

@@ -5,0 +5,0 @@ "type": "module",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc