Comments (4)
Sounds good. I guess the view plugin's render method would have the same parameters as the render method on the content plugin currently?
How would the processed content be exposed to the templates?
Having to encode data processing logic like date ordering in templates has been the only negative I've had using Wintersmith (otherwise it's been brilliant, great work!).
from wintersmith.
Yeah, the processed content would be exposed to the templates by the view, the default view plugin could just be something like:
pageView = (plugin, locals, contents, templates, callback) ->
template = templates[plugin.template]
locals.page = plugin
locals.contents = contents
template.render locals, callback
from wintersmith.
Would this allow a view plugin to be written to expose processed data in the content tree? If a template could access "pre-processed" data in the content tree, like in Jekyll, it would simplify template logic and lower the barrier for getting started with Wintersmith.
Would it be possible to develop a paginator with a pageView? Or would this need a different effort?
from wintersmith.
Boom
from wintersmith.
Related Issues (20)
- Feature Request: Adding custom markdown tags HOT 2
- Use plain HTML content instead of Markdown? HOT 2
- Beta release with Pug v2 support HOT 6
- Is wintesmith support on Windows? HOT 3
- Yarn installation is broken HOT 5
- Sitemap HOT 1
- Generating website with javascript HOT 1
- Website links in markdown containing numbers are not being parsed correctly HOT 2
- npm issues deprecated warning when installing wintersmith HOT 1
- No mention of AMP support
- update help output to reflect that some options cannot be set in the config file
- Wintersmith preview/build fails when upgrading from 2.4.1 to 2.5.0 HOT 1
- marked upgrade from 0.3.x to 0.5.x changed how markdown inside html is parsed HOT 1
- Error loading plugin './node_modules/wintersmith-sassify': Module did not self-register.
- marked must be >=0.6.1else github displays security error
- Any way to use chrome devtools for debugging purposes? HOT 1
- upgrade highlight.js to version 10
- [Question] Does Wintersmith support multi-languages ?
- Asset hashes or versioning
- [Question/Bug?] Archives shows '404 Not Found' after I changed config "baseUrl" HOT 2
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 wintersmith.