Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebUI - Development Details #100

Closed
BanjoFox opened this issue Mar 27, 2018 · 1 comment
Closed

WebUI - Development Details #100

BanjoFox opened this issue Mar 27, 2018 · 1 comment
Assignees
Labels
feature request UI/UX Items related to User Interface, or User Experience

Comments

@BanjoFox
Copy link
Collaborator

BanjoFox commented Mar 27, 2018

This is item 4, in the Hackers Guide to Aardwolf

Most of the UI development (at least for now) can be done independently of the Rust/backend development. In fact a separate repository has been created for any individual that would like to focus on HTML/CSS/Front-end type activities (we have non-technical ones too ;D trust me).
The aardwolf-interface repository is where that work is being tracked (mostly). It is very likely that this repository will remain as a permanent project fixture. Even as features are ported over to the main repository it will still be nice to have a place for people to test layouts.

/templates -- is where the bulk of the Tera-syntax HTML lives. Please feel free to use filler-text for testing layouts.
/web -- is where the static assets should reside.

Hopefully the sub-folders are self-explanitory...(unlikely x.X, but will fix later)

Tera Syntax (40,000-foot-view)

Reusable text that goes into the Language/translation files looks like this:
'''{{ variable_name }}'''

Templates can be included as part of another page (think PHP include()) as such:

'''{% block file_name %}{% endblock file_name %}'''
Where file_name is the actual name of the *.html.tera file. File paths are not required (IIRC) because Rocket will find them.
You can also have "fallback" html for those times when a block becomes broken:

'''
{% block new_post %}

This will render even if "new_post" will not!

{% endblock new_post %} '''

Tera documentation is found here:
Tera Templates

@BanjoFox BanjoFox removed the mozsprint label Jul 5, 2018
@BanjoFox BanjoFox changed the title UI Development UI Development - TODO List Jul 5, 2018
@BanjoFox BanjoFox added help wanted UI/UX Items related to User Interface, or User Experience and removed help wanted labels Jul 5, 2018
@BanjoFox BanjoFox changed the title UI Development - TODO List UI Development - Details Nov 2, 2018
@BanjoFox BanjoFox assigned BanjoFox and unassigned BanjoFox Nov 2, 2018
@BanjoFox BanjoFox added this to the WebUI - Base Templates milestone Nov 2, 2018
@BanjoFox BanjoFox changed the title UI Development - Details WebUI - Development Details Nov 2, 2018
@BanjoFox
Copy link
Collaborator Author

This is a stale issue (wontfix)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request UI/UX Items related to User Interface, or User Experience
Projects
None yet
Development

No branches or pull requests

1 participant