Commit Graph

12 Commits

Author SHA1 Message Date
Luke Page
898e27f525 Add silent option 2013-07-05 06:50:53 +01:00
Luke Page
6fc6dc2301 Add import inline option. Fixes #1209 2013-07-05 06:48:47 +01:00
Luke Page
dca9643a1a If the callback throws an error and imports are syncronous, let the error fall through to the calling scope. 2013-03-18 10:12:57 +00:00
C. Scott Ananian
72c469d86e Implement syntax in gh #1185 for @import options. Implement multiple & less.
First step in implementing syntax for @import options, proposed in
https://github.com/cloudhead/less.js/issues/1185#issuecomment-13710620
(steps (1) and (2)).

I've implemented the 'multiple' and 'less' options.  One could trivially
add 'once' and 'css' options as well, if there was need.  Proposed
"silent" and "inline" options are deferred for future work.

I left the existing "@import-multiple" and "@import-once" syntax in place,
although the proposal is for this to be deprecated once the new option
syntax is in place.
2013-03-05 11:23:47 +00:00
Luke Page
b48c0f929a make visitor replacing optional 2013-03-04 08:14:13 +00:00
Luke Page
59a443556a move action out of constructor 2013-03-01 14:50:38 +00:00
Luke Page
5d54af2039 import interpolation finished. refactored the import phase to occur only within the import visitor - so that the import eval env can be passed between imports. 2013-03-01 13:40:54 +00:00
Luke Page
14cee5d04f first test and fixes for simple implementation 2013-03-01 13:40:53 +00:00
Luke Page
9280b53291 make import visitor stack up frame scopes 2013-03-01 13:40:51 +00:00
Luke Page
290d7a055c organise the import node a bit better. eval the node before fetching 2013-03-01 13:40:49 +00:00
Luke Page
e63c8c5868 Move importing into visitor 2013-03-01 13:40:03 +00:00
Luke Page
39f669e83c Add import visitor 2013-03-01 13:40:01 +00:00