csalmeida / hozokit Goto Github PK
View Code? Open in Web Editor NEWTheme Building Framework for WordPress
License: GNU General Public License v2.0
Theme Building Framework for WordPress
License: GNU General Public License v2.0
When a new component is added or renamed whilst running Hozokit in a Docker container it creates the following issue:
Warning: file_get_contents(/var/www/html/wp-content/themes/hozokit/templates/components/button/index.twig): failed to open stream: No such file or directory in /var/www/html/wp-content/themes/hozokit/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 145
How to replicate:
index.twig
file and some markup. e.g templates/components/button/index.twig
templates/index.twig
so that it tries to render in the homepage.Need to work this one out eventually but for now docker compose down && docker compose up -d
solves it (docker compose restart
does not do the trick in this case).
templates/components/button/index.twig
:
{% block button %}
<button>Press me!</button>
{% endblock %}
templates/components/button/style.scss
:
// Empty but it does exist
templates/index.twig
:
{% extends "base.twig" %}
{% block content %}
<h2>This is index.twig</h2>
<p>This content block is rendered inside base.twig, which allows the header and footer to be included as well.</p>
{% include "button/index.twig" %}
<h3>Posts:</h3>
<ol>
{% for post in posts %}
<li><a href="{{post.link}}">{{post.title}}</a></li>
{% endfor %}
</ol>
{% endblock %}
Hi, cool project!
I'd like to contribute, but the project needs a license file first.
Do you have a license in mind for this project?
https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/licensing-a-repository#choosing-the-right-license
Thanks!
SASS/SCSS are discouraging and phasing out support for @import
rule in favour of the @use
rule.
This makes styling more readable, safer and reduces compile time.
For more detail see 'โ Heads Up!' notice in the documentation here.
Read @use
rule docs here.
Setup: Using Hozokit Generator.
On npm run start
the following error occurs at styles
.
Error: File not found with singular glob
**AT**
/styles/base.scss
(if this was purposeful, use `allowEmpty` option)
Gulp is looking for this file but doesn't exist from generator.
Note: this is on main and not v2.0.0
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.