Skip to content

niorad/Froot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Froot

Static File generation made simple

This tool is the result of some frustration with making static webpages. It's a command-line-tool which parses files, including the content of referenced files, and outputs the result to stdout.

Referencing a file works like this:

>>>"./includes/snippets/header.html"
>>>"includes/snippets/header.html"
>>>"../snippets/header.html"
<!-- >>>"includes/header.html" -->
// >>>"modules/slider.js"

Functions

  • Include files in files

Unfinished Business, ToDo-s

  • Needs to be tested with very large files
  • Create Man-Page for maximal command-line-streetcred
  • Clarify/Check behavior for recursive includes, maybe prohibit going up a folder

Build

MacOS, Linux

gcc -froot_macos_linux.c -o froot

Windows

(ToDo)

Usage on MacOS, Linux

To see the output in the terminal

./froot ./relative/path/to/sourcefile.html

Usage on Windows

froot.exe relative\path\to\sourcefile.html

About

Static File generation made simple

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages