From 3a36e536353dae50920ceb1e7080bc651efc15b5 Mon Sep 17 00:00:00 2001 From: clover caruso Date: Thu, 14 Aug 2025 20:37:51 -0700 Subject: [PATCH] chore: convert all files to unix-style line ends --- framework/test-fixture/Component.marko | 8 +- framework/test-fixture/UseComponent.marko | 12 +- src/blog/pages/webdev/marko-intro.markodown | 678 ++++++++++---------- src/file-viewer/views/lofi.marko | 142 ++-- src/file-viewer/views/lofideon.marko | 44 +- src/friends/.gitignore | 8 +- src/pages/resume.marko | 100 +-- src/q+a/tags/question-form.marko | 26 +- src/q+a/views/image-embed.marko | 32 +- src/q+a/views/permalink.marko | 98 +-- 10 files changed, 574 insertions(+), 574 deletions(-) diff --git a/framework/test-fixture/Component.marko b/framework/test-fixture/Component.marko index 83ff635..5c1e597 100644 --- a/framework/test-fixture/Component.marko +++ b/framework/test-fixture/Component.marko @@ -1,4 +1,4 @@ -
-
- wait(${null}) -
+
+
+ wait(${null}) +
diff --git a/framework/test-fixture/UseComponent.marko b/framework/test-fixture/UseComponent.marko index 4881037..d116695 100644 --- a/framework/test-fixture/UseComponent.marko +++ b/framework/test-fixture/UseComponent.marko @@ -1,6 +1,6 @@ -import Component from './Component.marko'; - -

web page

- - - +import Component from './Component.marko'; + +

web page

+ + + diff --git a/src/blog/pages/webdev/marko-intro.markodown b/src/blog/pages/webdev/marko-intro.markodown index 0436022..8a7df80 100644 --- a/src/blog/pages/webdev/marko-intro.markodown +++ b/src/blog/pages/webdev/marko-intro.markodown @@ -1,339 +1,339 @@ -export const blog: BlogMeta = { - title: "Marko is the coziest HTML templating language", - desc: "...todo...", - created: "2025-06-13", - draft: true, -}; -export const meta = formatBlogMeta(blob); -export * as layout from "@/blog/layout.tsx"; - -I've been recently playing around [Marko], and after adding limited support -for it in my website generator, [sitegen], I instantly fell in love with how -minimalistic it is in comparison to JSX, Astro components, and Svelte. - -[Marko]: https://next.markojs.com -[sitegen]: https://paperclover.dev/clo/sitegen - -## Introduction to Marko - -If JSX was taking HTML and shoving its syntax into JavaScript, Marko is shoving -JavaScript into HTML. Attributes are JavaScript expressions. - -```marko -
- // `input` is like props, but given in the top-level scope - - - - // Capital letter variables for imported components - - - // Components also can be auto-imported by lowercase. - // This will look upwards for a `tags/` folder containing - // "custom-footer.marko", similar to how Node.js finds - // package names in all upwards `node_modules` folders. - -
- -// ESM `import` / `export` just work as expected. -// I prefer my imports at the end, to highlight the markup. -import MarkdownContent from "./MarkdownContent.marko"; -import { formatTimeNicely } from "../date-helpers.ts"; -``` - -Tags with the `value` attribute have a shorthand, which is used by the built-in -`` for conditional rendering. - -```marko -// Sugar for - - -// and it composes amazingly to the 'if' built-in - - - -``` - -Tags can also return values into the scope for use in the template using `/`, such as `` for unique ID generation. This is available to components that ``. - -``` - - - -
- -import * as path from "node:path"; -import { escapeUri, formatDuration, formatSize, formatDate } from "@/file-viewer/format.ts"; -import { MediaFileKind } from "@/file-viewer/models/MediaFile.ts"; -import * as sort from "@/file-viewer/sort.ts"; +import "./lofi.css"; +export interface Input { + file: MediaFile; + hasCotyledonCookie: boolean; +} +export { meta, theme } from "./clofi.tsx"; + + + + + + + + + + 0 + ? formatDuration(file.duration!) + : null + )/> +
  • + + ${formatDate(file.date)}${" "} + ${file.basenameWithoutExt}${file.extension}${dir ? '/' : ''} + (${meta}) + +
  • +
    + +

    + clo's files + ${fullPath} +

    + + + +
    + +

    ${key} +
      + +
    + + +





    +

    + would you like to + dive deeper? +

    + + + + + +

    + +import * as path from "node:path"; +import { escapeUri, formatDuration, formatSize, formatDate } from "@/file-viewer/format.ts"; +import { MediaFileKind } from "@/file-viewer/models/MediaFile.ts"; +import * as sort from "@/file-viewer/sort.ts"; diff --git a/src/file-viewer/views/lofideon.marko b/src/file-viewer/views/lofideon.marko index ca2f297..92fbfe9 100644 --- a/src/file-viewer/views/lofideon.marko +++ b/src/file-viewer/views/lofideon.marko @@ -1,22 +1,22 @@ -export interface Input { - stage: number -} -export const meta = { title: 'C O T Y L E D O N' }; -export const theme = { - bg: '#ff00ff', - fg: '#000000', -}; - -

    co
    ty
    le
    don

    - - - -

    -this place is sacred, but dangerous. i have to keep visitors to an absolute minimum; you'll get dust on all the artifacts. -

    -by entering our museum, you agree not to use your camera. flash off isn't enough; the bits and bytes are alergic even to a camera's sensor -

    -(in english: please do not store downloads after you're done viewing them) -

    - - +export interface Input { + stage: number +} +export const meta = { title: 'C O T Y L E D O N' }; +export const theme = { + bg: '#ff00ff', + fg: '#000000', +}; + +

    co
    ty
    le
    don

    + + + +

    +this place is sacred, but dangerous. i have to keep visitors to an absolute minimum; you'll get dust on all the artifacts. +

    +by entering our museum, you agree not to use your camera. flash off isn't enough; the bits and bytes are alergic even to a camera's sensor +

    +(in english: please do not store downloads after you're done viewing them) +

    + + diff --git a/src/friends/.gitignore b/src/friends/.gitignore index 024151e..61eb273 100644 --- a/src/friends/.gitignore +++ b/src/friends/.gitignore @@ -1,4 +1,4 @@ -# this directory is private, and not checked into the git repository -# instead, it is version-controlled via computer clover's backup system. -* -!.gitignore +# this directory is private, and not checked into the git repository +# instead, it is version-controlled via computer clover's backup system. +* +!.gitignore diff --git a/src/pages/resume.marko b/src/pages/resume.marko index 6c64f2e..bf61e4c 100644 --- a/src/pages/resume.marko +++ b/src/pages/resume.marko @@ -1,50 +1,50 @@ -import "./resume.css"; - -export const meta = { title: 'clover\'s resume' }; - -
    -

    clover's resume

    -
    last updated: 2025 - - -
    -

    web/backend engineer

    - 2025-now - -
      - (more details added as time goes on...) -
    - - - -
    -

    runtime/systems engineer

    - 2023-2025 -

    developer tools company

    - -
      -
    • hardcore engineering, elegant solutions -
    • platform compatibility & stability -
    • debugging and profiling across platforms -
    - - - -
    -

    technician

    - 2023; part time -

    automotive maintainance company

    - -
      -
    • pressed buttons on a computer -
    - - -
    -

    eduation

    2004-now -

    - my life on earth has taught me more than i expected. i
    - continue to learn new things daily, as if it was magic. -

    -
    -
    +import "./resume.css"; + +export const meta = { title: 'clover\'s resume' }; + +
    +

    clover's resume

    +
    last updated: 2025 + + +
    +

    web/backend engineer

    + 2025-now + +
      + (more details added as time goes on...) +
    + + + +
    +

    runtime/systems engineer

    + 2023-2025 +

    developer tools company

    + +
      +
    • hardcore engineering, elegant solutions +
    • platform compatibility & stability +
    • debugging and profiling across platforms +
    + + + +
    +

    technician

    + 2023; part time +

    automotive maintainance company

    + +
      +
    • pressed buttons on a computer +
    + + +
    +

    eduation

    2004-now +

    + my life on earth has taught me more than i expected. i
    + continue to learn new things daily, as if it was magic. +

    +
    +
    diff --git a/src/q+a/tags/question-form.marko b/src/q+a/tags/question-form.marko index 4b1ee59..6f90847 100644 --- a/src/q+a/tags/question-form.marko +++ b/src/q+a/tags/question-form.marko @@ -1,13 +1,13 @@ -
    -