Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
subview
Advanced tools
Readme
Subview.js is a minimalistic hierarchical view framework designed to be highly modular, highly extensible and very efficient for applications containing thousands of views. The last point makes subview an excellent choice for complex user interfaces that are redrawn often such as word processors, messengers and other single-page web-apps. Subview is not and will never be a complete MVC framework but rather a View/Controller module designed to be used in conjunction with a Data Model.
npm install subview
subview('main', {
/*** Life-Cycle Methods ***/
once: function() {
//Runs the first time a subview is created then never again.
},
init: function() {
//Stuff to be done when initializing a subview via the .spawn method
},
clean: function() {
//Runs when a subview is removed to clean and prepare it to be reused
},
/*** Templating ***/
template: Handlebars.compile(myTemplate),
subviews: { //Subviews that will be available in the template
name: SomeSubview
},
data: { //Data available in the template (may also be a function)
key: "value"
},
/*** Extensions ***/
myExtension: myExtension({
}),
/*** My API ***/
// ... Some API Functions
});
A simple example is available here.
Duties:
Tenets:
To build: grunt build
To watch: grunt watch
To test: grunt test
Contributions are always welcome! Please list bugs, issues and feature requests here.
FAQs
A hierarchical view framework.
The npm package subview receives a total of 0 weekly downloads. As such, subview popularity was classified as not popular.
We found that subview demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.