Opened 5 years ago

Last modified 4 years ago

#473 new enhancement

a2js: JavaScripr_Resource convention

Reported by: Maxim Reznik Owned by:
Priority: major Milestone: 19.0
Component: Matreshka - a2js Version:
Keywords: Cc:


New convention to import external text resources.

with League.Strings;
package Test is
CSS : constant League.Strings.Universal_String
  with Import, Convention =>  JavaScripr_Resource,
       Link_Name => "static/index.css";

Should generate something like this:

define('test', ['standard', 'text!static/index.css', 'league-strings'],
 function(_ec,_rc_css) {
_ec.css = _rc_css;

See more info here

Change History (2)

comment:1 by vadim.godunko, 4 years ago


Milestone renamed

comment:2 by vadim.godunko, 4 years ago

Milestone: 18.019.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.