Comments (4)
Even though the fields still are accessible from a technical perspective, making the fields private and creating getters and setters for them indicates that they're not intended to be used like the other fields, so this serves as a kind of documentation. Also, we mark those fields as subjects to change and un-stable for usage in templates, so the implementation and the value of these fields are completely up to verless. They're not even documented in the template reference. One of the advantages is that the internal implementation and usage can change at any time, and breaking backwards compatibility won't require a new major release.
This is because verless stores the related pages parsed from the Markdown in RelatedFQNs
for example, but those are only the URIs for the pages and don't provide any value for a template. verless creates Page
s from these URIs and puts them in Related
, which should be used in templates instead.
from verless.
which fields exactly?
from verless.
RelatedFQNs
and Hide
.
from verless.
But if I add public getters and setters, the fields can be accessed the same as before. I don't understand the purpose of making it private if we then provide the same public access using public getters and setters... Am I missing something?
from verless.
Related Issues (20)
- Grammar in plugin subsection of the Tutorial HOT 2
- Structure of /assets directory should be preserved on copy HOT 2
- Loop over a subfolder of "content" HOT 1
- Make it possible to use template inheritance / parse all templates
- Clickable Tags HOT 4
- Move markdown processing logic for plugins into the plugins
- verless create project: Don't remove .git directory HOT 1
- Watcher doesn't notice created or renamed files as events
- Add Robots Front Matter field
- Support ARM Docker images
- Replace Windows screenshots with macOS screenshots in tutorial
- Use assets directory in example project
- Atom feed: Pages in content directory root get too many slashes in Link/ID
- verless serve displays wrong port information HOT 3
- verless serve: Listen to OS interrupt signal and stop server
- verless serve -w: Concurrent map access HOT 1
- Make tree package an independent Go package
- `redirect` plugin
- Failed to create new project
- reduce size
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 verless.