naitlee / tradit-tpl Goto Github PK
View Code? Open in Web Editor NEWUse an HFS 2 'template' in HFS 3 - PRE-ALPHA stage
License: GNU General Public License v3.0
Use an HFS 2 'template' in HFS 3 - PRE-ALPHA stage
License: GNU General Public License v3.0
Tradit-TPL/tradit-constants.ts
Line 3 in 11129a3
you'd better use __dirname to tell where your tpl is.
It's neater, but also your folder may have a different name when downloaded.
Line 20 in 11129a3
__dirname is a symbol, you shouldn't surround it with quotes
Line 12 in 7c2224c
you should require version 4, because of real_path
The code can work.
Though I want to make following changes, for less overhead ("pre-mature optimization"), or at least to try out new things:
Implement most macros in WebAssembly, with AssemblyScript. Notably non-async & trivial ones.
add
, replace
, urlvar
%list%
(symbols are also macros here)Only optimize macro if all its parameters are "known"
{.replace|a|b|c|d|abc.}
and {.add|1|{.add|1|1.}.}
{.replace|a|{.urlvar|b.}|c|d|abc.}
The bad side:
special:alias
etc. etc.... These will be done step by step.
Some dev "flags":
[special:strings;zh-CN]
to do better backend localization (when see HTTP header Accept-Language: zh-CN
)[special:features]
to request different behavior. Example:
no-sort
for by default preventing backend from sorting file list (to save resource) (in this case browser/client do it)Not in a hurry. But wouldn't it be great?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.