densha 0.1.5

Next.js-like web application framework built with Kotoba
Documentation
{
  "metadata": {
    "title": "Densha App",
    "description": "Kotoba統合Webフレームワーク"
  },
  "template": {
    "type": "html",
    "attributes": {
      "lang": "ja"
    },
    "children": [
      {
        "type": "head",
        "children": [
          {
            "type": "meta",
            "attributes": {
              "charset": "UTF-8"
            }
          },
          {
            "type": "meta",
            "attributes": {
              "name": "viewport",
              "content": "width=device-width, initial-scale=1.0"
            }
          },
          {
            "type": "title",
            "children": ["{{title}}"]
          },
          {
            "type": "meta",
            "attributes": {
              "name": "description",
              "content": "{{description}}"
            }
          },
          {
            "type": "link",
            "attributes": {
              "rel": "stylesheet",
              "href": "/globals.css"
            }
          },
          {
            "type": "link",
            "attributes": {
              "href": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap",
              "rel": "stylesheet"
            }
          },
          {
            "type": "script",
            "attributes": {
              "src": "https://cdn.tailwindcss.com"
            }
          }
        ]
      },
      {
        "type": "body",
        "attributes": {
          "class": "font-['Inter'] bg-gray-50"
        },
        "children": [
          {
            "type": "nav",
            "attributes": {
              "class": "bg-white shadow-lg"
            },
            "children": [
              {
                "type": "div",
                "attributes": {
                  "class": "container mx-auto px-4"
                },
                "children": [
                  {
                    "type": "div",
                    "attributes": {
                      "class": "flex justify-between items-center py-4"
                    },
                    "children": [
                      {
                        "type": "div",
                        "attributes": {
                          "class": "flex items-center space-x-2"
                        },
                        "children": [
                          {
                            "type": "span",
                            "attributes": {
                              "class": "text-2xl"
                            },
                            "children": ["🚀"]
                          },
                          {
                            "type": "h1",
                            "attributes": {
                              "class": "text-xl font-bold text-gray-900"
                            },
                            "children": ["Densha + Kotoba"]
                          }
                        ]
                      },
                      {
                        "type": "div",
                        "attributes": {
                          "class": "space-x-4"
                        },
                        "children": [
                          {
                            "type": "a",
                            "attributes": {
                              "href": "/",
                              "class": "text-gray-700 hover:text-blue-600 transition-colors"
                            },
                            "children": ["ホーム"]
                          },
                          {
                            "type": "a",
                            "attributes": {
                              "href": "/about",
                              "class": "text-gray-700 hover:text-blue-600 transition-colors"
                            },
                            "children": ["詳細"]
                          },
                          {
                            "type": "a",
                            "attributes": {
                              "href": "/api/hello",
                              "class": "text-gray-700 hover:text-blue-600 transition-colors"
                            },
                            "children": ["API"]
                          },
                          {
                            "type": "a",
                            "attributes": {
                              "href": "/blog",
                              "class": "text-gray-700 hover:text-blue-600 transition-colors"
                            },
                            "children": ["ブログ"]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "type": "main",
            "children": ["{{{children}}}"]
          },
          {
            "type": "footer",
            "attributes": {
              "class": "bg-gray-900 text-white py-8 mt-16"
            },
            "children": [
              {
                "type": "div",
                "attributes": {
                  "class": "container mx-auto px-4 text-center"
                },
                "children": [
                  {
                    "type": "p",
                    "attributes": {
                      "class": "text-gray-400"
                    },
                    "children": ["© 2024 Densha + Kotoba. プロセスネットワーク駆動のWebフレームワーク"]
                  },
                  {
                    "type": "div",
                    "attributes": {
                      "class": "mt-4 flex justify-center space-x-6"
                    },
                    "children": [
                      {
                        "type": "span",
                        "attributes": {
                          "class": "text-sm text-gray-500"
                        },
                        "children": ["Powered by Kotoba Process Network"]
                      },
                      {
                        "type": "span",
                        "attributes": {
                          "class": "text-sm text-gray-500"
                        },
                        "children": ["•"]
                      },
                      {
                        "type": "span",
                        "attributes": {
                          "class": "text-sm text-gray-500"
                        },
                        "children": ["Built with Rust + TypeScript"]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}