Opened 4 years ago

Last modified 2 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:

Description

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 https://github.com/requirejs/text

Change History (2)

comment:1 by vadim.godunko, 2 years ago

Milestone: 0.8.018.0

Milestone renamed

comment:2 by vadim.godunko, 2 years ago

Milestone: 18.019.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.