down. translated.

@spec.get_opts.each do |name, opt| options[name] = opt.value counts[name] = opt.count end @spec.get_args.each do |name, arg| args << arg.value named[name] = arg.value end args.flatten! args += trailing @report = Report.new(args, named, trailing, options, counts) if @report.opt(:help) self.print_usage() end unless @spec.get_args.values.all? {|arg| arg.fulfilled? } raise InterfaceError, "Required argument '#{name.upcase}' was not given." end if @spec.trailing_error && !@report.trailing.empty? raise InterfaceError, "Error: got trailing argument(s): #{trailing.join

Software

Introducing ๐Ÿฆ waxwing.js, a simple HTML construction library with an elegant syntax. waxwing allows you to easily create entire hierarchies of HTML elements, returning references to selected anchor elements.

For more information see the README.

UPDATE

Updated waxwing.js to v0.3.4. This update is mostly maintenance work, but brings other changes and improvements.

CHANGES

  • Added README
  • Added a simpler syntax for text nodes (c.text("foo") -> c("foo"))
  • Added tests
  • Now available on npm

LINKS

Directory