Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殰 Integrate Guillaume's new stamp language alternative into scroll #21

Closed
breck7 opened this issue Mar 27, 2021 · 2 comments
Closed

Comments

@breck7
Copy link
Owner

breck7 commented Mar 27, 2021

The Stamp format is an older Tree language and Guillaume's (breck7/jtree#120) is simpler and better. Current stamp contains features like file permissions that we never need.

We just need base64 (for the favicon), and then we could ditch "example.com/" folder with simple single file template like:

favicon.ico base64
 ae22ac43eda3
hello-world.scroll
 title Hello world
 date 2/20/2021
 permalink helloWorld
 
 paragraph
  Hello, world. This is an article written
  in Scroll.
 
 paragraph
  Below is all the main node types that ship with
  Scroll.
 
 title2 This is a subtitle
 title6 This is the sixth level of subtitle
 
 This is a quick paragraph. It may be deprecated in the future.
 
 code
  Here is a code block
 
 list
  - This is a list.
  - It probably will be removed
 
 comment This comment cell will not appear in the HTML
 
 comment
  this is a
  multiline comment that also won't appear
readme.scroll
 title Scroll example readme
 paragraph
  This folder contains an example Scroll for the
  Scroll static publishing software.
  
  It is used by the tests.
  
  The "index.html" file is what the results of building a Scroll
  should look like.
scrollSettings.map
 title Welcome to my Scroll
 description Play that music too loud.
 github https://github.com/publicdomaincompany/scroll
 git https://github.com/publicdomaincompany/scroll/tree/master/example.com
 twitter https://twitter.com/publicdomainpub
 email scroll@publicdomaincompany.com
@breck7
Copy link
Owner Author

breck7 commented Mar 27, 2021

To detect base64, we might not even need a flag. Simply looking if the whole content is a valid base64, and perhaps also checking the file extension, is probably enough for 99%+ of use cases, and then someone could make an expanded lang for any rare exceptions if they needed.

@breck7 breck7 changed the title Integrate Guillaume's new stamp language alternative into scroll 馃殰 Integrate Guillaume's new stamp language alternative into scroll Apr 25, 2021
@breck7
Copy link
Owner Author

breck7 commented May 19, 2021

Stamp wasn't actually necessary. Guillaume's language is better and that work should be done in jtree, but we don't need stamp in scroll.

@breck7 breck7 closed this as completed May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant