Comments (3)
A common pattern in Ruby is to use ERB as a pre-processor for any file type, not just HTML. So foo.html.erb
produces foo.html
, while bar.json.erb
produces bar.json
etc. The advantage is that you get all of Ruby to help define and control the template. The downside is that you need a Ruby interpreter and then to load the ERB gem. Not strong advocacy, just a passing thought.
from dclib.
Thanks Ian worth considering but my initial reaction is the ERB would be step backward in legibility :)
Seems more relevant if there was any conditional generation involved but not necessarily a good match for getting a more readable surface syntax.
from dclib.
Added YAML support, handles all current JSON (small glitch over tags) but allows comments and multi-line strings. Using YAML style (rather than the JSON "flow" style) is arguably more readable too.
from dclib.
Related Issues (20)
- Support for fetching reference data from remote services HOT 1
- Template Language documentation missing or moved. HOT 1
- Replace asNode machinery HOT 1
- hash namespace prefix expansion with empty localname looses the trailing '#' HOT 2
- $row functions don't seem to return wrapped Values HOT 1
- Array valued 'bind'
- Improve progress indicator
- Conditional templates HOT 1
- Validation
- Trying to generate tel: URI generates an error HOT 2
- dclib x.fetch() seem to only ask for .ttl
- Support version flag on dclib executable HOT 1
- Add support to create ValueArrays with the global value function HOT 1
- Provide away to make URI/resource nodes from `ValueArray` strings with prefix expansion. HOT 1
- Extraneous prefixes emitted with no (obvious) way to remove them HOT 3
- ValueArray.map(...) behaviour when individual items fail to map.
- Is it possible to get segments, but camel-cased? HOT 3
- toCleanSegement() and full-stops HOT 2
- Syntax checking and IDE help
- Carriage Return 0x0d rewritten in cell values HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dclib.